This method converts a HotDocs template to a HotDocs Model.
This method was introduced with the release of HotDocs 2008.
string ConvertTemplateToModel( string TemplatePath, ref string modelDocumentPath, bool hotdocsDisplaysMessages )
| Parameters | Description |
| TemplatePath | The file name and path of the template to convert. |
| modelDocumentPath | The file name and path of the HotDocs Model to create from the template. |
| hotdocsDisplaysMessages | Indicates if HotDocs will display messages during the conversion. |
The following Visual C# example converts a HotDocs template to a HotDocs Model:
public class ExampleCode
{
static void Main()
{
HotDocs.Application app = new HotDocs.Application();
string tpPath = @"c:\temp\template1.rtf";
string mdPath = @"c:\temp\modeldocument1.rtf";
app.ConvertTemplateToModel(tpPath, ref mdPath, true);
}
}