Create an HTML report

Set up and configure output to HTML from your reporting application.

Use fgl_report_selectDevice("HTML") to output the data in HTML format. You can use this function to output any existing report (including ASCII) as an HTML document.

By default:
  • Graphical elements such as bar codes are rendered as images. These images are included in the document.
  • When elements overlay each other or when text strings intersect, one image is created from the overlaid elements and included in the document. An exception occurs when the overlaid element is an image: the "background" image is removed from the resulting document.
  • Whitespace is stripped from the document.
  • Horizontal and vertical alignment are not ignored.

To change these defaults and configure other parameters, use fgl_report_configureHTMLDevice.

Example

#Ignore horizontal and vertical alignment
IF fgl_report_loadCurrentSettings(reportname) THEN
    CALL fgl_report_configureHTMLDevice(NULL,NULL,NULL,NULL,NULL,NULL,TRUE,TRUE,NULL)
    CALL fgl_report_selectDevice("HTML")
    LET HANDLER = fgl_report_commitCurrentSettings()
ELSE
    EXIT PROGRAM
END IF