ZebraPrinterFactoryGetInstance(String, Connection) Method
|
Factory method to create the correct
ZebraPrinter concrete class based on the printer's control language.
Namespace: Zebra.Sdk.PrinterAssembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax public static ZebraPrinter GetInstance(
string[] cpclFwVersionPrefixes,
Connection connection
)
Public Shared Function GetInstance (
cpclFwVersionPrefixes As String(),
connection As Connection
) As ZebraPrinter
public:
static ZebraPrinter^ GetInstance(
array<String^>^ cpclFwVersionPrefixes,
Connection^ connection
)
Parameters
- cpclFwVersionPrefixes String
- An array of possible CPCL version number prefixes
- connection Connection
- An open connection to a printer
Return Value
ZebraPrinterAn instance of a
ZebraPrinterExceptions Remarks
If the Set-Get-Do value, appl.name, starts with one of the cpclFwVersionPrefixes, the
printer is determined to be a CPCL printer.Otherwise it is considered to be a ZPL printer.
See Also