Click or drag to resize

ZebraPrinterGetCurrentStatus Method

Returns a new instance of PrinterStatus that can be used to determine the status of a printer.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1869
Syntax
PrinterStatus GetCurrentStatus()

Return Value

Type: PrinterStatus
A new instance of PrinterStatus.
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an issue communicating with the printer (e.g. the connection is not open.)
Remarks
Each invocation of this method will result in a query of the connected printer. If more than one status value is to be read, it is recommended that a copy of PrinterStatus is stored locally.

Note: This method must be invoked again to retrieve the most up-to-date status of the printer. The PrinterStatus object will only query the printer upon creation.
Note: Some Mobile printers (including the MZ series printers) will not communicate if the printer is not ready to print.On these printers, status information is not available when, for example, the printer is out of paper. This method will throw a ConnectionException if it is called when the printer cannot communicate.
See Also