Rocket® Enterprise Developer (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.
PC_PRINTER_WRITE
Restriction:
- This routine is not supported on UNIX platforms.
- This routine is not supported when CHARSET"EBCDIC" is in effect.
Writes a text string to the printer.
Syntax:
call "PC_PRINTER_WRITE" using printer-handle
print-buffer
by value print-buffer-len
returning status-code
Parameters:
| Using call prototype (see Key) | Picture | |
|---|---|---|
| printer-handle | cblt-x4-comp5 | pic x(4) comp-5. |
| print-buffer | pic x(n). | pic x(n). |
| print-buffer-len | 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-buffer | The buffer from which the bytes are to be printed |
| print-buffer-len | The number of bytes to print |
On Exit:
| status-code | Printer Handling Routines Return Codes |