Click or drag to resize

ZebraPrinterFactoryGetInstance(Connection) Method

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: 3.0.3271
Syntax
public static ZebraPrinter GetInstance(
	Connection connection
)

Parameters

connection  Connection
An open connection to a printer

Return Value

ZebraPrinter
An instance of a ZebraPrinter
Exceptions
ExceptionCondition
ConnectionExceptionIf an I/O error occurs
ZebraPrinterLanguageUnknownExceptionIf the printer language cannot be determined
Remarks
If the Set-Get-Do value, appl.name, starts with one of the following, the printer is determined to be a CPCL printer. Otherwise it is considered to be a ZPL printer
  • SH
  • H8
  • C
See Also