Template Constructor (String, TemplateLocation, String, String)
Construct a Template object.

Namespace: HotDocs.Sdk
Assembly: HotDocs.Sdk (in HotDocs.Sdk.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public Template(
	string fileName,
	TemplateLocation location,
	string switches = "",
	string key = ""
)

Parameters

fileName
Type: OnlineSystem String
The template file name.
location
Type: HotDocs.Sdk TemplateLocation
The location of the template.
switches (Optional)
Type: OnlineSystem String
Contains the command line options to be used. For example, the host application could examine this property to determine if any switches indicate that the interview should not be displayed. Switches may be set in the template or by the host application. Switches are interpreted by the host application. The Template class provides helper properties for interpreting switches. These properties are also accessed by the WorkSession class.
key (Optional)
Type: OnlineSystem String
Uniquely identifies the template. A key is necessary for templates without a fixed file name, such as when stored in a DMS or other database. An empty string may be used for templates with a fixed file name.
See Also