Click or drag to resize

ZebraCardTemplateGenerateTemplateJob Method

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

Namespace:  Zebra.Sdk.Card.Job.Template
Assembly:  SdkApi_Card_Desktop (in SdkApi_Card_Desktop.dll) Version: 2.14.1989
Syntax
public 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.

Implements

ZebraTemplateGenerateTemplateJob(String, DictionaryString, String)
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