PrintToDefaultPrinter - cDRReport¶
Methods - Properties - Events
Method Type¶
Procedure
Arguments¶
None
Description¶
Prints the report, without opening a printer selector dialog, to the default printer defined at this machine.
This method cannot be used before the report OCX object is initialized. The COM object creation is - when not done before - created as part of the OpenReport method.
Note: When used in web applications, the output is sent to a printer defined at the webserver. This might not be accessible for an end-user.
DataFlex Framework usage¶
- Web (limited to printing at the webserver)
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
End_Object
Object oPrintReportButton is a Button
Set Label to 'Print Report'
Procedure OnClick
String sReportId
Get OpenReport of oReport to sReportId
Send PrintToDefaultPrinter of oReport
End_Procedure
End_Object