Configure an event to generate a PDF

Configure the
Generate PDF
method for the event to specify the output file and locale for the report.
Prerequisites
  1. To configure an event to generate a PDF
  2. Add a button to trigger report generation.
    For more information, see Button.
  3. In
    Project view
    , select the button.
  4. In
    Events
    , next to
    MouseClick event
    , select
    Add
    .
  5. Navigate to and expand the reports object, select
    Generate PDF
    , and then choose
    Select
    .
  6. In
    Properties
    under
    Input arguments
    , in
    OutputPath
    , enter the target location for the report.
    For example, enter
    %APPLICATIONDIR%/Report.pdf
    , to generate a
    Report.pdf
    file in the
    ApplicationFiles
    directory of the project.
  7. (optional) In
    Properties
    , in
    LocaleId
    , select the locale for the report.
    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.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.