PRINTER.SETTING() |
![]() ![]() ![]() |
The PRINTER.SETTING() function sets or retrieves a control parameter for a print unit.
This function is obsolete. The SETPU statement or GETPU() function should be used in its place.
Format
PRINTER.SETTING(print.unit, param, new.value)
where
The PRINTER.SETTING() function returns the new (or unchanged) value of the parameter.
The parameters which may be set or retrieved by this statement are identified by param numbers. Tokens for these are defined in the KEYS.H include record in the SYSCOM file.
Modes marked with an asterisk are query only.
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
WIDTH = PRINTER.SETTING(1, LPTR$WIDTH, -1)
This statement sets the page width on print unit 1 to the default value and stores this value in WIDTH. |