fgl_report_selectDevice
Select the output device.
Parameters
See Usage.
Syntax
fgl_report_selectDevice(
device STRING )
device STRING
- Sets the output device from this list:Table 1. Output device options Output device Description Printer Postscript PDF RTF Microsoft™ RTF OORTF Open Office RTF Image SVG Report that displays in the integrated Genero Report Viewer. Browser Report that displays in Genero Report Viewer for HTML5. XLS MicrosoftExcel™ file (older versions) XLSX MicrosoftExcel file (Excel 2007 onwards) 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. Document Model XML The data that is used in the report design. 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. Setting the device to
Printer
selects server-side silent printing. Report Writer selects the printer that best meets the criteria specified by the functions listed in the Printer Functions section.Transformed XML
andDocument Model XML
are available only when a design file has been specified by fgl_report_loadCurrentSettings().If a value is specified that is not in this list, an error message is displayed.
Usage
Function to select the output device.
Selecting a different output device changes the current settings. The choices are listed in Parameters.
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.