Session.GetHotDocsVersion Method
This method returns the version of HotDocs that was used to publish a given template.
Syntax
public HotDocs.Server.Interop.HotDocsVersion GetHotDocsVersion ( string interviewFileName )
| Parameters | Description |
| interviewFileName | The file name and path of the HotDocs interview definition (.JS) file for a template. |
Return Value
One of the following values from the HotDocsVersion Enumeration, which indicates the version of HotDocs that was used to publish the template:
| Name | Value | Description |
| HotDocs6 | 0 | HotDocs 6 |
| HotDocs2005 | 1 | HotDocs 2005 |
| HotDocs2006 | 2 | HotDocs 2006-11 |
Example
The following Visual C# code displays the version of HotDocs that was used to publish a template.
public class ExampleCode
{
static void Main()
{
HotDocs.Server.Session HDSSession = new HotDocs.Server.Session();
string fileName = "c:\\temp\\demoempl.js";
System.Console.WriteLine("HotDocsVersion of {0}: {1}", fileName, HDSSession.GetHotDocsVersion(fileName));
System.Console.WriteLine("InterviewVersion of {0}: {1}", fileName, HDSSession.GetInterviewVersion(fileName));
}
}