Guardian Programmer's Guide

Table Of Contents
Communicating With Printers
Guardian Programmer’s Guide 421922-014
11 - 14
Using Page-Control Commands
Using Page-Control Commands
Page-control commands include a subset of escape sequences that allow you to
control characteristics such as the size of the page, orientation, margins, and text
spacing. This subsection presents some of the more common commands. Again, for
complete details on all page-control commands, refer to the appropriate printer
reference manual.
The features described here are supported on all Tandem laser printers.
Setting the Paper Size
You need to specify to Tandem laser printers the physical page size of the paper you
intend to print on. Use an escape sequence with the following format:
size indicates the paper size or envelope size as follows:
Paper sizes:
Envelope sizes:
The following example selects the legal page size:
SBUFFER ':=' [%33,"&l3A"] -> @S^PTR;
CALL WRITEX(PRINTER^NUM,
SBUFFER,
@S^PTR '-' @SBUFFER);
IF <> THEN ...
Escape sequence to set the paper size:
esc&lsizeA
1 Executive (7.25 inch x 10.5 inch)
2 Letter (8.5 inch x 11 inch)
3 Legal (8.5 inch x 14 inch)
2
6
A4 (210 mm x 297 mm)
8
0
Letter (Monarch 7.75) (3.875 x 7.5)
8
1
Business (Commercial 10) (4.125 x 9.5)
9
0
International DL (110 mm x 220 mm)
9
1
International C5 (162 mm x 229 mm)