New Events to Change Printer Information in cDRReport¶
What is new - 8.2¶
This change involves the following:
New events¶
OnPreShowPrintDialog¶
Fired by PrintReport just prior to the PrintDialog function call.
OnPostShowPrintDialog¶
Fired by PrintReport just after the PrintDialog function ends.
OnPreReportPrint¶
Called after collecting print dialog structure information via either PrintDialog or psPrinterName, allowing the developer to change the value of the hPrintDlg parameter, which contains the address of a PRINTDLGEX structure.
New method¶
CopyReportPageSizeAndOrientation¶
Reads report paper size and orientation and sets the pePaperSize and peOrientation properties. Setting these properties should be skipped when the printer dialog should not get a customized DEVMODE structure to operate correctly.
New property¶
pbCopyReportPageSizeAndOrientation¶
The default for this property is set to true for backwards compatibility and controls whether the CopyReportPageSizeAndOrientation retrieves paper size and orientation from the report and sets the pePaperSize and peOrientation properties of a cPrintDialog object.