Units documentation

rpgdidriver.pas

Description

This unit implements the Windows GDI print driver. It's only available in Windows and the output may be a bitmap or the printer.

Components and classes

Name Base class Description
TRpGDIDriver TInterfacedObject, IRpPrintDriver Implementation of the Windows GDI print driver
TFRpQtProgress TForm Dialog to show the progress of report and print processing

Functions

Declaration Description
procedure PageSizeSelection (rpPageSize:TPageSizeQt); Selects a page size
procedure OrientationSelection (neworientation:TRpOrientation); Selects a orientation
function PrintMetafile (metafile:TRpMetafileReport; tittle:string; showprogress,allpages:boolean; frompage,topage,copies:integer; collate:boolean; devicefonts:boolean; printerindex:TRpPrinterSelect=pRpDefaultPrinter):boolean; Prints a metafile
function CalcReportWidthProgress (report:TRpReport):boolean; Calculates the report
function PrintReport (report:TRpReport; Caption:string; progress:boolean; allpages:boolean; frompage,topage,copies:integer; collate:boolean):Boolean; Print a report
function ExportReportToPDF (report:TRpReport; Caption:string; progress:boolean; allpages:boolean; frompage,topage:integer; showprintdialog:boolean; filename:string; compressed:boolean):Boolean; Saves a report as a pdf file
function DoShowPrintDialog (var allpages:boolean; var frompage,topage,copies:integer; var collate:boolean;disablecopies:boolean=false) :boolean; Print Dialog
function PrinterSelection (printerindex:TRpPrinterSelect) :TPoint; Printer selection