PRINTER SETTING

PRINTER SETTING

Top  Previous  Next

 

The PRINTER SETTING statement sets a control parameter for a print unit.

 

This statement is obsolete. The SETPU statement should be used in its place.

 

 

Format

 

PRINTER SETTING {ON print.unit} param, new.value

 

where

 

print.unit evaluates to the print unit on which the action is be to performed. If omitted, the default print unit (unit 0) is used.

 

paramidentifies the parameter to be changed.

 

new.valueis the value to be set. A new.value of -1 sets the parameter to its default value.

 

 

The parameters which may be set by this statement are identified by param numbers. Tokens for these are defined in the KEYS.H include record in the SYSCOM file.

 

Key

Token

Default

Function

1

LPTR$WIDTH

80

Page width

2

LPTR$LINES

66

Lines per page for printer



or  24

Lines per page for display

3

LPTR$TOP.MARGIN

0

Top margin size (lines)

4

LPTR$BOTTOM.MARGIN

0

Bottom margin size (lines)

5

LPTR$LEFT.MARGIN

0

Left margin size (characters)

11

LPTR$FLAGS

Printer mode flags


 

 

The value of lines per page is best set to at least one less than the physical page size to prevent the automatic page throw of most printers after the final line of the page is printed.

 

 

Example

 

PRINTER SETTING ON 1 LPTR$LINES 60

 

This statement sets the number of lines per page on print unit 1 to 60.