2 Replies Latest reply on Jun 21, 2017 1:36 AM by Christophe BERNARD

    is it possible to know if the paper is empty ?

    Christophe BERNARD

      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

        • Re: is it possible to know if the paper is empty ?
          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

               ...

          }