Indicates whether PDF reports are used in your offline mobile application (to include the necessary library).
Objects: Menu, Panel, Work With
Generators: Android, Apple
This property has to be set for the Main object that invokes PDF reports in your offline native mobile application.
Note: By default, the Menu object has its Main program property set to True. As a result, the Use PDF Reports property will be shown, in order to set it to True. On the other hand, for a Panel object or a Work With pattern and Work With object, you must first set their Main program property to True to have the Use PDF Reports property displayed.
Legal Notice for Android: iText 5.x is used, which requires an AGPL or Commercial License. More information at External utilities used by GeneXus generated Android applications.
This property applies only at design time.
Consider a Procedure object that defines an offline PDF report.
It must have the following properties configured:
And the following rule:
- Output_file("ReportName.pdf", "PDF")
The PDF file is generated in the device and saved in the TemporaryFilesPath directory.
To open the report, you have to define the following:
&filePath = Directory.TemporaryFilesPath + & file.Separator + 'ReportName.pdf'
&fileUrl =! 'file: //' + & filePath
if Interop.CanOpen(&fileUrl)
Interop.Open(&fileUrl)
endif
Lastly, the Main offline object that includes the PDF report call must have the Use PDF Reports property set to True.
To apply the corresponding changes when the property value is configured, Build the Main Object.
This property is available since GeneXus 16 upgrade 4.