Configure an event to generate a PDF
Each report has a default PDF generated event.
Configure the Generate PDF method for the event to specify the output file and locale for the report.
- In Project view, select the Report# object.
-
In Properties, under Events, after PDF generated, select
Add new method.
- Under the expanded Reports# object, select Generate PDF.
- Choose Select.
- In Properties under Method and Input arguments, in OutputPath, select Browse.
-
In Select file, select the .xml file for the report and then choose Select.
To assign a file to OutputPath, enter a value. For example, enter
%APPLICATIONDIR%/Report.pdf
, to generate a Report.pdf file in the ApplicationFiles directory of the project. - In Properties, after LocaleId, select Add Dynamic Link.
-
In the Dynamic Link Editor, enter the locale.
For example, enter en-US.Tip: The locale determines the translation of text, units of measurement, and format of the report. If you do not enter a value in LocaleId, the report assumes the locale of the project.