Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

Content Freeze

As of July 25th, 2023, there is a content freeze on this page.

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:

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

Examples

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