property ExPrint.PrintExt as IUnknown FAR*
Specifies an object that implements the IPrintExt interface.

TypeDescription
IUnknown FAR* An object that implements the IPrintExt interface. Most of our UI components implements the IPrintExt interface so automatically provides the print and print-preview capabilities.

If you have an object that needs to provide Print and Print Preview capabilities the object needs to implement the IPrintExt interface. The ExPrint component communicates with an object being printed using the IPrintExt interface. The methods like Preview and DoPrint fail if the PrintExt property is not set. You can use the PrintExts property to send multiple objects/components to the same document.  Use the PrintExt property to send a single object to the printer.

The ExPrint component provides Print and Print Preview features for components like: eXGantt, eXG2antt, eXMLGrid, eXGrid, eXTree, eXList, eXCalendar, eXComboBox, eXPropertiesList, eXEdit, eXFileView, eXOrgChart, eXSchedule, eXPivot and so on.

The following samples show in different programming languages how to provide the print-preview capabilities for eXG2antt control:

Private Sub callPreview()
    With Print1
        Set .PrintExt = G2antt1.Object
        .preview
    End With
End Sub
Private Sub callPreview()
    With Print1
        Set .PrintExt = G2antt1.Object
        .Preview
    End With
End Sub
with thisform.Print1
	.PrintExt = thisform.G2antt1.Object
	.Preview
endwith
Private Sub callPreview()
    With AxPrint1
        .PrintExt = AxG2antt1.GetOcx()
        .Preview()
    End With
End Sub
Private Sub callPreview()
    With Exprint1
        .PrintExt = Exg2antt1
        .Preview()
    End With
End Sub
private void callPreview()
{
    axPrint1.PrintExt = axG2antt1.GetOcx();
    axPrint1.Preview();

}
private void callPreview()
{
    exprint1.PrintExt = exg2antt1;
    exprint1.Preview();
}
void CWindowMFCDlg::callPreview()
{
	m_print.SetPrintExt( m_g2antt.GetControlUnknown() );
	m_print.Preview();
}
void CWindowMFCDlg::callPreview()
{
	m_print.put_PrintExt( m_g2antt.GetControlUnknown() );
	m_print.Preview();
}
void TForm1::callPreview()
{
	Print1->PrintExt = G2antt1->DefaultDispatch;
	Print1->Preview();
}
procedure callPreview(P : TPrint; G : TG2antt);
begin
with P do
begin
 PrintExt := G.DefaultDispatch;
 Preview();
end;
end;
callPreview( Print1, G2antt1 );