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

API Overview

The printerFile.status() API returns the file status code for the last operation on a printer file.

RPG Equivalent




Return Value

The status code for the most recent operation on the file.


Manually open printer file
pjs.definePrinter("printer", { overflowIndicator: "overflow" });
try {
catch (error) {
  console.log(`An error occurred. Status code ${printer.status()}`);