Assembly.HotDocsVersion Property

[Read-only] This property returns the version of HotDocs used to create the template.

Syntax

public HotDocs.Server.Interop.HotDocsVersion HotDocsVersion { get; }

Example

// get the interview
interviewContent = _session.CurrentAssembly.GetInterview();
 
// make a change to layout if it is not a HotDocs 6 template
if (_session.CurrentAssembly.HotDocsVersion != HotDocs.Server.Interop.HotDocsVersion.HotDocs6)
body.Style.Add("overflow","hidden"); // HotDocs 2005 & later interviews look best without a scrollbar on the document
body