Sends a print command to a printer.
Restriction: This routine is not currently supported on UNIX platforms.
Syntax:
call "PC_PRINTER_CONTROL" using printer-handle
by value print-command
returning status-code
Parameters:
|
Using call prototype (see
Key)
|
Picture
|
printer-handle
|
cblt-x4-comp5
|
pic x(4) comp-5.
|
print-command
|
Numeric literal or cblt-x4-comp5
|
Numeric literal or pic x(4) comp-5.
|
status-code
|
See
Library Routines - Key
|
On Entry:
-
printer-handle
- The printer handle returned when the printer was opened.
-
print-command
- The command to send to the printer:
1
|
Abort printing the document and close the printer
|
2
|
Throw a page
|
3
|
Flush the print buffers
|
4
|
Start a new line
|