piImageExportPage - cDRReport¶
Methods - Properties - Events
Type¶
Default¶
1
Arguments¶
None
Description¶
Use this property to specify which page of the report to export to file. Multi page reports need to be exported page-by-page with the exception for TIFF files which support multiple pages in one file.
Can be retrieved or set after the OCX is initialized.
Related topics¶
DataFlex Framework Usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
End_Object
Object oExportToJPGReportButton is a Button
Set Label to 'Export Report to JPG'
Procedure OnClick
String sReportId
Get OpenReport of oReport to sReportId
If (sReportId <> '') Begin
Set piImageExportPage of oReport to 2
Send ExportReport of oReport C_drImage 'c:\tmp\MyReport.jpg'
End
End_Procedure
End_Object