Using -PRINTER:EH
You can generate enhanced HTML output from an SQR program by using the -PRINTER:EH command-line flag. Output that contains HTML formatting tags is produced. All output is displayed as fully formatted HTML 3.0 or 3.2 text. You can generate high-quality HTML from SQR programs by using -PRINTER:EH to issue a command like this:
sqrw myreport.sqr sammy/baker@rome -PRINTER:EHYou can control the version of HTML that is used by editing the FullHTML enhanced HTML parameter in the PSSQR.INI file. Set FullHTML to be equal to TRUE for HTML 3.2 or FALSE for HTML 3.0. Adjust this setting based on the level of HTML that your web browser supports. The -PRINTER:EH default output is HTML 3.0.
If you have existing .spf files for which you want to generate enhanced HTML output, you do not need to rerun your SQR program. You can invoke SQR Print (with SQRP or SQRWP, depending on your platform) to generate enhanced HTML from .spf files by using a command like this:
sqrwp myreport.spf -PRINTER:EHFrom within the SQR Viewer, you can also generate the same high-quality HTML by selecting File, Save as HTML. The HTML level output from the SQR Viewer is also determined by the PSSQR.INI file settings and has the same default value.
You can also generate enhanced HTML files with precompiled SQR program files (.sqt files). Run the .sqt file against SQR Execute with a command like this:
sqrwt myreport.sqt sammy/baker@rome -PRINTER:EHAs is true when running any .sqt file, you can run it against SQR (or sqrw on Microsoft Windows platforms) by including the -RT flag. To generate enhanced HTML, use the -PRINTER:EH flag in the command:
sqrw myreport.sqr sammy/baker@rome -RT -PRINTER:EHThe sample program ex7a.sqr produces a simple master and detail report. By running it with -PRINTER:EH, 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.
With -PRINTER:EH, you can also use additional flags to modify the output, such as:
-
-EH_CSV
This flag creates an additional output file in comma separated values (CSV) format.
-
-EH_CSV:file
This flag associates the CSV icon with the specified file.
-
-EH_Icons:dir
This flag specifies the directory in which the HTML should find the referenced icons.
-
-EH_Scale:{nn}
This flag sets the scaling factor from 50 to 200.
These flags work only with -PRINTER:EH.