TemplateFile Property
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
Specifies the template file path. Can be used instead of the LoadTemplate method. The document format is deduced from the file extension automatically.
Syntax
public string TemplateFile { get; set; }Public Property TemplateFile As StringExamples
The following example uses MailMerge.TemplateFile to configure template file as part of the mail merge workflow. The configured value is checked before the workflow continues.
mailMerge.TemplateFile = "document.docx";
if (!string.IsNullOrWhiteSpace(mailMerge.TemplateFile))
{
Console.WriteLine($"Template File: {mailMerge.TemplateFile}");
}mailMerge.TemplateFile = "document.docx"
If Not String.IsNullOrWhiteSpace(mailMerge.TemplateFile) Then
Console.WriteLine($"Template File: {mailMerge.TemplateFile}")
End If