Session.GetDocumentFileExtension Method

This method returns the file name extension of documents assembled from a specific template. For example, if you are assembling a HotDocs form (.HFT) template, the file name extension for an assembled document is .HFD . Likewise, the file name extension for an assembled Word RTF template is .RTF .

Syntax

string GetDocumentFileExtension ( string templateFileName )

Parameters Description
templateFileName The file name and path of a HotDocs template. (Only templates that produce documents are valid; interview (.CMP) templates do not produce assembled documents, and are thus invalid.)

Return Value

The file name extension of documents assembled from the specified template.