2-3 State (LONG R)
This attribute sets the printer's state. It is read only and the printer's state can be verified
and read by calling CheckPrinterStatusAsync. More than one State value can be set and
each value can be checked through bitwise operations.
The following values represent the printer's state:
The paper tray cover is open.
MSR is in the Read Mode. Cannot print.
BxlWinPhoneSDK bxlPrinter = new BxlWinPhoneSDK();
var ret = await bxlPrinter.ConnectToPrinterAsync(“port info..”);
……
Int32 status = await bxlPrinter.CheckPrinterStatusAsync();
if ((status & BXL_STS_PAPEREMPTY) == BXL_STS_PAPEREMPTY)
……
if ((status & BXL_STS_COVEROPEN) == BXL_STS_COVEROPEN)
……
…….