OnPostShowPrintDialog - cDRReport¶
Methods - Properties - Events
Method Type¶
Procedure (event)
Arguments¶
| Argument | Description |
|---|---|
sReportID |
Contains the ID of the main report. |
hoPrintDialog |
Contains the object ID of a cPrintDialog object, also stored in the phoPrintDialog |
Description¶
This event is sent by the object just after the print dialog function of the cPrintDialog class was invoked.
This is in:
- PrintToDefaultPrinter
-
When psPrinterName has been set but retrieving printer information failed.
- When psPrinterName is not set and no PrinterDlg got passed or changed in OnPrintReport.
It is allowed to change the phPrintDialog property.
DataFlex Framework usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Procedure OnPostShowPrintDialog String sReportId Handle hoPrintDialog
Handle hPrinterDlg
Forward Send OnPostShowPrintDialog
Get piCopies of hoPrintDialog to iCopies
Get phPrintDlg of hoPrintDialog to hPrinterDlg
End_Procedure
End_Object