Method XbpPrinter():printerStatus() Foundation
Determine the current status of a printer.
:printerStatus() --> nStatus
The method returns a numeric value corresponding with one of the XBPPRN_STATUS_* constants listed in XBPDEV.CH:
XBPPRN_STATUS_PAUSED |
XBPPRN_STATUS_READY |
XBPPRN_STATUS_BUSY |
XBPPRN_STATUS_SERVICE |
XBPPRN_STATUS_NOPAPER |
XBPPRN_STATUS_NOT_READY |
XBPPRN_STATUS_NA |
XBPPRN_STATUS_ERROR |
XBPPRN_STATUS_OFFLINE |
XBPPRN_STATUS_PAUSED
The printer has been paused
XBPPRN_STATUS_READY
Printer is on-line and ready to print
XBPPRN_STATUS_BUSY
The printer is busy for one of the following reasons:
XBPPRN_STATUS_SERVICE
The printer needs servicing or is currently being serviced due to:
XBPPRN_STATUS_NOPAPER
The printer is out of paper
XBPPRN_STATUS_NOT_READY
The printer is not (yet) ready to print due to:
XBPPRN_STATUS_NA
The printer is not available due to:
XBPPRN_STATUS_ERROR
Printer reports some error states such as:
XBPPRN_STATUS_OFFLINE
The printer is currently not on-line
The return value of :printerStatus() is obtained from the operating system or the installed printer driver. If the method reports an unexpected status, it is recommended to update the printer driver to its newest version.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.