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.PrinterAssembly: 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.
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
Exception | Condition |
---|---|
ZSDK_API.ApiException..::.ZebraPrinterConnectionException | If there is an issue communicating with the printer (e.g. the connection is not open). |
ZSDK_API.ApiException..::.ZebraGeneralException | If there is an issue writing to the printer. |