Click or drag to resize

ZebraTemplateGenerateTemplateJob Method

Returns an instance of the TemplateJob object containing the job specific data.

Namespace:  Zebra.Sdk.Card.Job.Template
Assembly:  SdkApi_Card_Core (in SdkApi_Card_Core.dll) Version: 2.14.1989
Syntax
TemplateJob GenerateTemplateJob(
	string templateName,
	Dictionary<string, string> fieldDataMap
)

Parameters

templateName
Type: SystemString
The name of the template.
fieldDataMap
Type: System.Collections.GenericDictionaryString, String
A Dictionary object containing the template field names as the keys and the template field values for the key values.

Return Value

Type: TemplateJob
A TemplateJob object containing the required job specific data.
Exceptions
ExceptionCondition
ConnectionExceptionIf the device is busy or an error occurs communicating with the printer.
FileNotFoundExceptionIf the specified template or referenced image file/s are not found.
ZebraIllegalArgumentExceptionIf the specified template data or field data is invalid.
ZebraCardExceptionIf there is an error generating the template job.
See Also