pPDFExportOptions - cDRReport¶
Methods - Properties - Events
Obsolete¶
The property is obsolete per version 26. Setting PDF export options is now done via the properties
- pbPDFAllPages
- pePDFImageQuality
- pePDFPageMode
- pePDFType
- psPDFOwnerPassword
- piPDFPage
- psPDFUserPassword
- psPDFXMLFileName
Type¶
drPDFExportOptions structure
Default¶
None
Arguments¶
None
Description¶
This write-only property must be set before exporting to PDF using the ExportReport method. It should be assigned a value of the drPDFExportOptions data type.
This property cannot be set until the report OCX object is initialized. The COM object is created as part of the OpenReport method if it has not been created beforehand.
You can call the function DefaultPDFExportOptions to initialize the drPDFExportOptions variable.
Related topics¶
Obsolete per version 26
- pCSVExportOptions
- pHTMLExportOptions
- pImageExportOptions
- pRTFExportOptions
- pXLSExportOptions
- DefaultPDFExportOptions
DataFlex Framework usage¶
- Web
- Windows
- FlexTron
Sample¶
Object oReport is a cDRReport
Set psReportName to 'MyReport.dr'
End_Object
Object oExportReportButton is a Button
Set Label to 'Export Report'
Procedure OnClick
drPDFExportOptions myExportOptions
Get OpenReport Of oReport To sReportId
// set the export options
Get DefaultPDFExportOptions of oReport to myExportOptions
Move C_drNormal to myExportOptions.iPageMode
Move 'MyPassword' to myExportOptions.sOwnerPassword
Move 'UserPassword' to myExportOptions.sUserPassword
Move C_drLow to myExportOptions.iImageQuality
Move True to myExportOptions.bAllPages
Move 0 to myExportOptions.iPage
Set pPDFExportOptions of oReport to myExportOptions
// exports the report to a file named MyReport.pdf
Send ExportReport of oReport C_drPDF 'c:\tmp\MyReport.pdf'
End_Procedure
End_Object
In version 24.0, it is possible to create a Factur-X PDF document. To create this, the following code could be used:
Object oExportReportButton is a Button
Set Label to 'Create Factur-X PDF'
Procedure OnClick
drPDFExportOptions FacturxOptions
String sXMLFileName
Get GenerateFacturXFile to sXMLFileName
Get OpenReport Of oReport To sReportId
// set the export options
Get DefaultPDFExportOptions of oReport to FacturxOptions
Move C_drNormal to FacturxOptions.iPageMode
Move 'MyPassword' to FacturxOptions.sOwnerPassword
Move 'UserPassword' to FacturxOptions.sUserPassword
Move C_drLow to FacturxOptions.iImageQuality
Move True to FacturxOptions.bAllPages
Move 0 to FacturxOptions.iPage
Move C_drFacturX to FacturxOptions.iPDFType
Move sXMLFileName to FacturxOptions.sFileName
Set pPDFExportOptions of oReport to FacturxOptions
// exports the report to a file named MyFacturXReport.pdf
Send ExportReport of oReport C_drPDF 'c:\tmp\MyFacturXReport.pdf'
End_Procedure
End_Object