GenerateReport_Function - cDRReport¶
Methods - Properties - Events
Method Type¶
Function
Arguments¶
None
Returns¶
String
Description¶
Opens the report using OpenReport. If successful, the method loads default PDF export options using DefaultPDFExportOptions. This struct is passed to OnSetPDFExportOptions for different settings and passed to the OCX where it is used by ExportReport. The PDF filename is constructed by ReportCacheFileName. If not cancelled, the export filename is passed to the caller.
DataFlex Framework usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oMyReport is a cWebDRReport
Set psReportName to "CustomerList.dr"
End_Object
Object oRunReportButton is a cWebButton
Procedure OnClick
String sPDFFileName
Get GenerateReport of oMyReport to sPDFFileName
End_Procedure
End_Object
Notes¶
- Available for DataFlex 17.1 and higher