Click or drag to resize

ZebraPrinterFactory.GetInstance Method (PrinterLanguage, Connection)

Factory method to create the correct ZebraPrinter concrete class based on the printer's control language.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.14.1989
Syntax
public static ZebraPrinter GetInstance(
	PrinterLanguage language,
	Connection connection
)

Parameters

language
Type: Zebra.Sdk.Printer.PrinterLanguage
The language of the printer instance to be created
connection
Type: Zebra.Sdk.Comm.Connection
An open connection to a printer

Return Value

Type: ZebraPrinter
An instance of a ZebraPrinter
Exceptions
ExceptionCondition
ConnectionExceptionIf an I/O error occurs
See Also