API Overview
The printerFile.open() API is used to manually open a printer file defined with pjs.definePrinter().
Printer files are automatically opened at the start of the program or function unless the 'userOpen' file configuration option is used.
RPG Equivalent
OPEN
Contents
Exception Handling
An Error instance with the following properties will be thrown if any problems occur while opening the file:
- message - The IBM i message text.
- error - The message id.
help - The message help text.
Examples
Title of Example Code
// Sample code goes here.