Application.ConvertModelToTemplate Method

This method converts a HotDocs Model to a HotDocs template.

This method was introduced with the release of HotDocs 2008.

Syntax

string ConvertModelToTemplate( string modelDocumentPath, ref string TemplatePath, bool hotdocsDisplaysMessages )

Parameters Description
modelDocumentPath The file name and path of the HotDocs Model to convert.
TemplatePath The file name and path of the template to create from the HotDocs Model.
hotdocsDisplaysMessages Indicates if Hotdocs will display messages during the conversion.

Example

The following Visual C# example converts a HotDocs Model to a template:

public class ExampleCode
{
    static void Main()
    {
        HotDocs.Application app = new HotDocs.Application();
        string mdPath = @"c:\temp\modeldocument1.rtf";
        string tpPath = @"c:\temp\template1.rtf";
        app.ConvertModelToTemplate(mdPath, ref tpPath, true);
    }
}