Producing HTML Output

You can produce HTML output from an SQR program by using one of four methods, each of which provides a different level of HTML features:

  • Running an unmodified SQR program with the -PRINTER:EH command-line flag makes the HTML 3.0 or 3.2 output viewable in a web browser.

  • Running an unmodified SQR program with the -PRINTER:HT command-line flag makes the HTML 2.0 output viewable in a web browser.

  • Using two HTML procedures, html_set_head_tags and html_set_body_attributes, enables you to define a title and background image for HTML output.

    With this method, you must still use the -PRINTER:HT command-line flag.

  • Using additional HTML procedures produces output with a full set of HTML features, including lists, tables, and links.

    With this method, you must still use the -PRINTER:HT command-line flag.

The procedures that are used in the last two options are contained in a file called html.inc. To use HTML procedures, the SQR program must include this command:

#include 'html.inc'

The HTML.INC file is located in the SAMPLE (or SAMPLEW) directory. Use the -I command-line flag to specify its path.