Returns a new instance of PrinterStatus that can be used to determine the status of a printer. 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.

Namespace:  ZSDK_API.Printer
Assembly:  ZSDK_API (in ZSDK_API.dll) Version: 1.1.123.0

Syntax

C#
PrinterStatus GetCurrentStatus()
Visual Basic (Declaration)
Function GetCurrentStatus As PrinterStatus

Return Value

A new instance of PrinterStatus.

Remarks

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 over Bluetooth(R) 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 ZebraPrinterConnectionException if it is called when the printer cannot communicate.

Exceptions

ExceptionCondition
ZSDK_API.ApiException..::.ZebraPrinterConnectionExceptionIf there is an issue communicating with the printer (e.g. the connection is not open).
ZSDK_API.ApiException..::.ZebraGeneralExceptionIf there is an issue writing to the printer.

See Also