Using -PRINTER:HT
Another method for generating HTML output from an SQR program is running a program with the command-line flag -PRINTER:HT. Alternatively, you can make some simple modifications to the program. Add either DECLARE-PRINTER with the TYPE=HT argument or USE-PRINTER-TYPE HT.
With these methods, HTML output is generated in the following way:
-
All output appears as preformatted text by using the <PRE> and </PRE> HTML tags.
-
Text appears on the page at the position coordinates that are specified in the SQR program.
-
Text appears in a fixed-width font, such as Courier.
-
Font sizes map to HTML font sizes.
-
HTML reserved characters map to the corresponding HTML sequence.
The <, >, &, and " characters map to the <, >, &, and ", character sequences, respectively, thus preventing the web browser from mistaking such output as an HTML sequence.
The sample program ex7a.sqr produces a simple master and detail report. By running it with -PRINTER:HT, you can produce HTML output. A left frame is produced with links to each page of the report. The right frame features a navigation bar that appears at the top of every page in the report. The navigation bar enables you to move to the first or last page or to move one page forward or backward from your relative page viewing position.
SeeUsing the DECLARE-PRINTER Command and Understanding Printer-Independent Reports.