Search the Wiki

Viewing 148 to 150 of 409 items

ESC Calls

ReportBuilder renders to the printer using the Delphi TCanvas class and via calls to Windows GDI functions. Use the TppPrinter.SendEscape() routine to manually send ESC commands to the printer. See the ppPCL.pas file and the TppPCL topic in the ReportBuilder help for more information about controlling the printer with ESC calls.

0

Detecting Whether Report Printed to Printer

TECH TIP: Detecting Whether Report Was Printed to the Printer The Report.AfterPrint event can be used to determine whether the report was printed to the printer (rather than preview, …). Example: procedure TForm1.ppReport1AfterPrint(Sender: TObject); begin if (ppReport1.PrinterDevice <> nil) then ShowMessage('Report was printed to the printer'); end; Note: If the user cancels the report while it  Full Article…

0

Detecting Whether PrintDialog Cancel

TECH TIP: Detecting Whether PrintDialog’s Cancel Button Was Selected When the print dialog is displayed to the user, you can determine whether the Cancel button was selected by using the  Report.OnPrintDialogClose event. Example: procedure TForm1.ppReport1PrintDialogClose(Sender: TObject); begin if ppReport1.PrintDialog.ModalResult = mrCancel then ShowMessage('Use chose to cancel the print request'); end;  

0