Page tree
Skip to end of metadata
Go to start of metadata

API Overview

The 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



Exception Handling

An Error instance with the following properties will be thrown:

  • message - The IBM i message text.
  • error - The message id.
  • help - The message help text.


Manually open printer file
pjs.definePrinter("printer", { userOpen: true, overflowIndicator: "overflow" });;