is it possible to know if the paper is empty ?

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

Samantha Corn
Hi Christophe,It is possible!

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

     ...

}

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Christophe BERNARD
Hello samantha,thanks a lot

Hello samantha,

thanks a lot for your time and your knowledge that's great to find some fast help here

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments