Click or drag to resize

FormatUtilPrintStoredFormat Method (String, String, String)

Prints a stored format on the printer, filling in the fields specified by the array.

Namespace:  Zebra.Sdk.Printer
Assembly:  SdkApi_Core (in SdkApi_Core.dll) Version: 2.13.898
Syntax
void PrintStoredFormat(
	string formatPathOnPrinter,
	string[] vars,
	string encoding
)

Parameters

formatPathOnPrinter
Type: SystemString
The location of the file on the printer (e.g. "E:FORMAT.ZPL").
vars
Type: SystemString
An array of strings representing the data to fill into the format. For LinkOS/ZPL printer formats, index 0 of the array corresponds to field number 2 (^FN2). For CPCL printer formats, the variables are passed in the order that they are found in the format.
encoding
Type: SystemString
A character-encoding name (eg. UTF-8).
Exceptions
ExceptionCondition
ConnectionExceptionIf an I/O error occurs.
ArgumentExceptionIf the encoding is not supported.
Remarks
The values of any format variables will be encoded using the provided encoding type.eg.UTF-8. On a LinkOS/ZPL printer, only ZPL formats are supported.On a CPCL printer, only CPCL formats are supported.
See String for more information about encoding types.
See Also