Zebra LinkOS Multiplatform SDK for Xamarin  1.1
Link-OS Portable Class Library Plugin for Xamarin
LinkOS.Plugin.Abstractions.IPrinterStatus Interface Reference

A class used to obtain the status of a Zebra printer. More...

Inheritance diagram for LinkOS.Plugin.Abstractions.IPrinterStatus:
LinkOS.Plugin.PrinterStatusImplementation

Properties

bool IsHeadCold [get]
 true if the head is cold. More...
 
bool IsHeadOpen [get]
 true if the head is open. More...
 
bool IsHeadTooHot [get]
 true if the head is too hot. More...
 
bool IsPaperOut [get]
 true if the paper is out. More...
 
bool IsPartialFormatInProgress [get]
 true if there is a partial format in progress. More...
 
bool IsPaused [get]
 true if the printer is paused. More...
 
bool IsReadyToPrint [get]
 true if the printer reports back that it is ready to print More...
 
bool IsReceiveBufferFull [get]
 true if the receive buffer is full. More...
 
bool IsRibbonOut [get]
 true if the ribbon is out. More...
 
int LabelLengthInDots [get]
 The length of the label in dots. More...
 
int LabelsRemainingInBatch [get]
 The number of labels remaining in the batch. More...
 
int NumberOfFormatsInReceiveBuffer [get]
 The number of formats currently in the receive buffer of the printer. More...
 
string ZplPrintMode [get]
 The print mode. More...
 
string Status [get]
 A single csv style list of the current statuses More...
 

Detailed Description

A class used to obtain the status of a Zebra printer.

using LinkOS.Plugin;
public bool PreCheckPrinterStatus(IConnection connection)
{
// Check the printer status prior to printing
IZebraPrinter printer = ZebraPrinterFactory.Current.GetInstance(connection);
IPrinterStatus status = printer.CurrentStatus;
if (!status.IsReadyToPrint)
{
System.Diagnostics.Debug.WriteLine("Unable to print. Printer is " + status.Status);
return false;
}
return true;
}
public bool PostPrintCheckStatus(IConnection connection)
{
// Check the status again to verify print happened successfully
IZebraPrinter printer = ZebraPrinterFactory.Current.GetInstance(connection);
IPrinterStatus status = printer.CurrentStatus;
// Wait while the printer is printing
while ((status.NumberOfFormatsInReceiveBuffer > 0) && (status.IsReadyToPrint))
{
status = printer.CurrentStatus;
}
// verify the print didn't have errors like running out of paper
if (!status.IsReadyToPrint)
{
System.Diagnostics.Debug.WriteLine("Error durring print. Printer is " + status.Status);
return false;
}
return true;
}

Property Documentation

◆ IsHeadCold

bool LinkOS.Plugin.Abstractions.IPrinterStatus.IsHeadCold
get

true if the head is cold.

◆ IsHeadOpen

bool LinkOS.Plugin.Abstractions.IPrinterStatus.IsHeadOpen
get

true if the head is open.

◆ IsHeadTooHot

bool LinkOS.Plugin.Abstractions.IPrinterStatus.IsHeadTooHot
get

true if the head is too hot.

◆ IsPaperOut

bool LinkOS.Plugin.Abstractions.IPrinterStatus.IsPaperOut
get

true if the paper is out.

◆ IsPartialFormatInProgress

bool LinkOS.Plugin.Abstractions.IPrinterStatus.IsPartialFormatInProgress
get

true if there is a partial format in progress.

◆ IsPaused

bool LinkOS.Plugin.Abstractions.IPrinterStatus.IsPaused
get

true if the printer is paused.

◆ IsReadyToPrint

bool LinkOS.Plugin.Abstractions.IPrinterStatus.IsReadyToPrint
get

true if the printer reports back that it is ready to print

◆ IsReceiveBufferFull

bool LinkOS.Plugin.Abstractions.IPrinterStatus.IsReceiveBufferFull
get

true if the receive buffer is full.

◆ IsRibbonOut

bool LinkOS.Plugin.Abstractions.IPrinterStatus.IsRibbonOut
get

true if the ribbon is out.

◆ LabelLengthInDots

int LinkOS.Plugin.Abstractions.IPrinterStatus.LabelLengthInDots
get

The length of the label in dots.

◆ LabelsRemainingInBatch

int LinkOS.Plugin.Abstractions.IPrinterStatus.LabelsRemainingInBatch
get

The number of labels remaining in the batch.

◆ NumberOfFormatsInReceiveBuffer

int LinkOS.Plugin.Abstractions.IPrinterStatus.NumberOfFormatsInReceiveBuffer
get

The number of formats currently in the receive buffer of the printer.

◆ Status

string LinkOS.Plugin.Abstractions.IPrinterStatus.Status
get

A single csv style list of the current statuses

◆ ZplPrintMode

string LinkOS.Plugin.Abstractions.IPrinterStatus.ZplPrintMode
get

The print mode.


The documentation for this interface was generated from the following file: