Using report output functions

When you load the current settings of a report, you load report output options specified in the report design document. To change how the report is output, the output functions must be called after the loading of the current settings (fgl_report_loadCurrentSettings), but before committing the current settings (fgl_report_commitCurrentSettings).

In this example, the Genero BDL code fragment uses the fgl_report_selectDevice function to change the output device to PDF and the fgl_report_selectPreview function to select to preview the report.

IF fgl_report_loadCurrentSettings(r_filename) THEN  -- load the 4rp file 
                                                    -- and continue if successful
  CALL fgl_report_selectDevice("PDF")               -- change to PDF
  CALL fgl_report_selectPreview(TRUE)               -- preview file using default previewer
  -- ADD ADDITIONAL API CALLS HERE, BEFORE YOU COMMIT CURRENT SETTINGS.
  LET handler = fgl_report_commitCurrentSettings()  -- commit changes
ELSE
  EXIT PROGRAM
END IF