Application.GetInterviewVersion Method
Deprecated
This method returns the HotDocs interview version number that was used when the given template was published for use with HotDocs Server. The interview version number identifies the interview runtime that must be used with the given template.
For templates published prior to HotDocs 11, you can supply either the file path to the template itself, or the file path of the interview definition (.JS) file for the template. For templates published in HotDocs 11 or later, since you no longer have access to the interview definition (.JS) file, you should supply the file path of the template itself.
Syntax
public string GetInterviewVersion ( string fileName )
Parameters | Description |
fileName | The path of a HotDocs template, manifest (.manifest.xml), or interview definition (.JS) file. |
Return Value
The version of HotDocs that was used to publish the template:
-
6.2.0.0: HotDocs 6
-
6.3.0.0: HotDocs 2005
-
6.4.0.0: HotDocs 2006 to 10.x
-
6.5.0.0: HotDocs 11 or later
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)); } }