fgl_report_selectDevice
Specify the output device for the report.
Syntax
fgl_report_selectDevice(
device STRING )
device STRING
- Sets the output device from this list:Table 1. Output device options Output device Description SVG Report that can be viewed in the integrated Genero Report Viewer or sent to the local printer. Browser Report that displays in Genero Report Viewer for HTML5. Printer Report printed silently on a server-side printer. Report Writer selects the printer that best meets the criteria specified by the functions in the Printer Functions table. HTML Hypertext Markup Language (.html) file for displaying in a web browser. XLS Microsoft® Excel™ file (older versions). XLSX Microsoft Excel file (Excel 2007 onwards). TXT Text File Format (.txt). RTF Microsoft RTF file. OORTF Open Office RTF file. PDF Portable Document Format (.pdf) file. Postscript Adobe® PostScript (.ps) file. Image A series of .jpg, .png, .bmp, or .gif files. Input XML The XML as provided by the 4gl application. Normalized XML A normalized XML document in which the simple type values are shipped in "variable-value" elements in a separate "RTL-INPUT" namespace. Transformed XML An XML document as it appears after a report schema transformation (.rst) is applied. Available only when a design file has been specified by fgl_report_loadCurrentSettings()
.Document Model XML The data used in the report design. Available only when a design file has been specified by fgl_report_loadCurrentSettings()
.HLPXML High level PXML. An XML document as it appears after an RTL transformation specified in a .4rp design file is applied. PXML A document in the Genero Report Writer PXML Expression language. If a value is specified that is not in this list, an error message is displayed.
Usage
Function to select the report output device.
For an example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.