Specifying Output File Types by Using SQR Command-Line Flags

Except on the Microsoft Windows platform, SQR does not actually print a report. SQR creates an output file that contains the report, but it does not print it directly. The output file can be a printer-specific file or an SQR portable file (SPF). SQR portable files have a default extension of .spf or .snn (for multiple reports).

The following table summarizes SQR command-line flags and the types of output that they produce:

Command-Line Flag

Output File Extension

File Format

Suitable Usage

-PRINTER:EH

.htm

Enhanced HTML

Intranet or internet

-PRINTER:HP

.lis

PCL

HP LaserJet printer

-PRINTER:HT

.htm

HTML

Intranet and internet

-PRINTER:LP

.lis

US ASCII

Line printer

-PRINTER:PS

.lis

PostScript

PostScript printer

-PRINTER:WP

None.

Output goes directly to the default printer without being saved to a file. You can set the default printer by using the Microsoft Windows Control Panel.

Not applicable

Microsoft Windows

-NOLIS

.spf or .snn

SQR Portable file

SQR Print and SQR Viewer can print this file to different printers.

-KEEP

.spf or .snn (in addition to the .lis file that is normally created)

SQR Portable file and the format of the .lis file

SQR Print and SQR Viewer can print this .spf file to different printers.

No flag

.lis

US ASCII, PCL, or PostScript

Line printer, HP LaserJet, or PostScript, respectively

Note: When no flags are specified, SQR produces a line printer output unless it is otherwise set in the SQR program with DECLARE-PRINTER, USE-PRINTER-TYPE, or the PRINTER-TYPE option of DECLARE-REPORT.

SPF is a printer-independent file format that supports all of the SQR graphical features, including fonts, lines, boxes, shaded areas, charts, bar codes, and images.

This file format is useful for saving the output of a report. SPFs can be distributed electronically and read with the SQR Viewer. Producing SPF output also enables you to decide later where to print it. Use SQR Viewer or SQR Print to print an SPF file.