FormatUtilPrintStoredFormat(String, DictionaryInt32, String, String) Method
|
Prints a stored format on the printer, filling in the fields specified by the Dictionary.
Namespace: Zebra.Sdk.PrinterAssembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax void PrintStoredFormat(
string formatPathOnPrinter,
Dictionary<int, string> vars,
string encoding
)
Sub PrintStoredFormat (
formatPathOnPrinter As String,
vars As Dictionary(Of Integer, String),
encoding As String
)
void PrintStoredFormat(
String^ formatPathOnPrinter,
Dictionary<int, String^>^ vars,
String^ encoding
)
Parameters
- formatPathOnPrinter String
- The location of the file on the printer (e.g. "E:FORMAT.ZPL").
- vars DictionaryInt32, String
- A Dictionary which contains the key/value pairs for the stored format. For LinkOS/ZPL printer formats, the
key number should correspond directly to the number of the field in the format.For CPCL printer formats, the
values will be passed in ascending numerical order.
- encoding String
- A character-encoding name (e.g. UTF-8).
Exceptions 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