A script-enabled browser is required for this page to function properly.

Printer definition file syntax (printer codes)

A printer definition file contains printer codes. Some printer code names are used for both character mode and PostScript printer definitions, others are meaningful only for one or the other:

Common character and PostScript printer codes

Code Name and Syntax

Usage

after report <gen_string>

Is the <gen_string> to be sent to the printer after the report has finished printing. This code is typically used to ensure that the next print job starts on a new page of paper.

before report <gen_string>

Is like AFTER REPORT, only <gen_string> is sent before the report begins to print.

after page <gen_string>

Is the <gen_string> to be sent to the printer after each physical page (that is, each printer page), including the last.

between pages <gen_string>

Is the <gen_string> to be sent to the printer after each physical page (that is, each printer page), except the last.

code *string* <gen_string>

Is a user-defined or Reports Builder-recognized code. See *string* below.

height <integer>

Is the height of the report, in characters.

printer <string>

Is the name of the printer.

width <integer>

Is the width of the report, in characters.

Character-specific codes

Code Name and Syntax

Usage

automargin

Specifies that a carriage return not be added at the end of the file when the character in the last column is not null.

autopage

Specifies that a formfeed not be executed at the end of a page on which the last row is not blank.

box bottom center <gen_string>

Is the string to be used to draw the center of the bottom edge of a box (8).

box bottom left <gen_string>

Is the string to be used to draw the bottom-left corner of a box (7).

box bottom right <gen_string>

Is the string to be used to draw the bottom-right corner of a box (9).

box center center <gen_string>

Is the string to be used to draw the center of a box (5).

box center left <gen_string>

Is the string to be used to draw the center of the left edge of a box (4).

box center right <gen_string>

Is the string to be used to draw the center of the right edge of a box (6).

box horizontal <gen_string>

Is the string to be used to draw the top and bottom edges of a box.

box top center <gen_string>

Is the string to be used to draw the center of the top edge of a box (2).

box top left <gen_string>

Is the string to be used to draw the top-left corner of a box (1).

box top right <gen_string>

Is the string to be used to draw the top-right corner of a box (3).

box vertical <gen_string>

Is the string to be used to draw the left and right edges of the box.

hilight backspace <gen_string>

Prints a bold or underlined character by printing the character, backing up, and then reprinting the character. The backing up is done according to the <gen_string> (for example, esc "[0m").

hilight overstrike

Simulates bold/underline by printing the line and then reprinting items to be bold or underlining items as appropriate.

landscape <gen_string>

Is the <gen_string> to be used to make the printer print in landscape mode.

linefeed <gen_string>

Is the <gen_string> to be used at the end of each line of a page.

return string <gen_string>

Is the <gen_string> to be used to put the printer back at the beginning of the current line.

PostScript-specific codes

Code Name and Syntax

Usage

postscript

Is the indicator that the printer definition file is for a PostScript printer.

See also

About printer definition files

Packaged printer definition files

Printer definition file search method