is it possible to know if the paper is empty ?

// Expert user has replied.
E Efkan YILMAZ 3 years 7 months ago
4 1 0

Hello all,
i work with xamarin android and i would like to know if it's possible on a printer zebra MZ 220 or IMZ 220 to know when the paper arrive at the end ?
 
Ok someone people can tell me, user can check the ligth on the printer and change the paper when the ligth is ON ...
but i would like IF POSSIBLE to alert user when for example the paper arrives at the end ...
 
for example => each time i send a command to a printer i would like to check the paper for the next send command ...
 
thanks for your time

Please Register or Login to post a reply

1 Replies

S Samantha Corn

Hi Christophe,
It is possible! If you are using the Link-OS SDK for Xamarin, then you can use the following to get the current status of the printer:

private BluetoothConnection printerConnection;
...
printerConnection.Open();
IZebraPrinter printer = ZebraPrinterFactory.GetInstance(printerConnection);
IZebraLinkOsPrinter linkOsPrinter = ZebraPrinterFactory.CreateLinkOsPrinter(printer);
PrinterStatus printerStatus = (linkOsPrinter != null) ? linkOsPrinter.CurrentStatus : printer.CurrentStatus;
if (printerStatus.IsReadyToPrint)
{
     //Printer is set to print
     ...
}  
else if (printerStatus.IsHeadOpen)
{
     //Media door is open
     ...
}
else if (printerStatus.IsPaperOut)
{
     //Paper is out
     ...
}

CONTACT
Can’t find what you’re looking for?