Zebra
|
The ZebraPrinter type exposes the following members.
Name | Description | |
---|---|---|
Connection | Returns the printer's connection. | |
PrinterControlLanguage | Returns the printer control language (e.g. ZPL or CPCL) of the printer. |
Name | Description | |
---|---|---|
Calibrate |
Sends the appropriate calibrate command to the printer.
(Inherited from ToolsUtil) | |
GetCurrentStatus | Returns a new instance of PrinterStatus that can be used to determine the status of a printer. | |
GetVariableFields |
Returns a list of descriptors of the variable fields in this format.
(Inherited from FormatUtil) | |
PrintConfigurationLabel |
Sends the appropriate print configuration command to the printer.
(Inherited from ToolsUtil) | |
PrintImage(String, Int32, Int32) |
Prints an image from the connecting device file system to the connected device as a monochrome image.
(Inherited from GraphicsUtil) | |
PrintImage(String, Int32, Int32, Int32, Int32, Boolean) |
Prints an image from the connecting device file system to the connected device as a monochrome image.
(Inherited from GraphicsUtil) | |
PrintImage(ZebraImageI, Int32, Int32, Int32, Int32, Boolean) |
Prints an image to the connected device as a monochrome image.
(Inherited from GraphicsUtil) | |
PrintStoredFormat(String, DictionaryInt32, String) |
Prints a stored format on the printer, filling in the fields specified by the Dictionary.
(Inherited from FormatUtil) | |
PrintStoredFormat(String, String) |
Prints a stored format on the printer, filling in the fields specified by the array.
(Inherited from FormatUtil) | |
PrintStoredFormat(String, DictionaryInt32, String, String) |
Prints a stored format on the printer, filling in the fields specified by the Dictionary.
(Inherited from FormatUtil) | |
PrintStoredFormat(String, String, String) |
Prints a stored format on the printer, filling in the fields specified by the array.
(Inherited from FormatUtil) | |
Reset |
Sends the appropriate reset command to the printer.
(Inherited from ToolsUtil) | |
RestoreDefaults |
Sends the appropriate restore defaults command to the printer.
(Inherited from ToolsUtil) | |
RetrieveFileNames |
Retrieves the names of the files which are stored on the device.
(Inherited from FileUtil) | |
RetrieveFileNames(String) |
Retrieves the names of the files which are stored on the device.
(Inherited from FileUtil) | |
RetrieveFormatFromPrinter(String) |
Retrieves a format from the printer.
(Inherited from FormatUtil) | |
RetrieveFormatFromPrinter(Stream, String) |
Retrieves a format from the printer.
(Inherited from FormatUtil) | |
RetrieveObjectsProperties |
Retrieves the properties of the objects which are stored on the device.
(Inherited from FileUtil) | |
SendCommand(String) |
Converts the specified command to bytes using the default charset and sends the bytes to the printer.
(Inherited from ToolsUtil) | |
SendCommand(String, String) |
Converts the specified command to bytes using the specified charset "encoding" and sends the bytes to the
printer.
(Inherited from ToolsUtil) | |
SendFileContents(String) |
Sends the contents of a file to the device.
(Inherited from FileUtil) | |
SendFileContents(String, ProgressMonitor) |
Sends the contents of a file to the device.
(Inherited from FileUtil) | |
SetConnection | Changes the printer's connection. | |
StoreImage(String, String, Int32, Int32) |
Stores the specified image to the connected printer as a monochrome image.
(Inherited from GraphicsUtil) | |
StoreImage(String, ZebraImageI, Int32, Int32) |
Stores the specified image to the connected printer as a monochrome image.
(Inherited from GraphicsUtil) |
using System; using Zebra.Sdk.Comm; using Zebra.Sdk.Printer; public class ZebraPrinterExample { public static void Main(string[] args) { Connection connection = new TcpConnection("10.0.1.18", TcpConnection.DEFAULT_ZPL_TCP_PORT); try { connection.Open(); ZebraPrinter zPrinter = ZebraPrinterFactory.GetInstance(connection); PrinterLanguage pcLanguage = zPrinter.PrinterControlLanguage; Console.WriteLine($"Printer Control Language is {pcLanguage}"); } catch (ConnectionException e) { Console.WriteLine(e.ToString()); } catch (ZebraPrinterLanguageUnknownException e) { Console.WriteLine(e.ToString()); } finally { connection.Close(); } } }