Filename Property
- Namespace
TXTextControl.DocumentServer. Fields
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets and sets the file name of the document that should be inserted. In the MailMerge component, the search path for the documents can be set using the DocumentServer.MailMerge.SearchPath property.
Syntax
public string Filename { get; set; }Public Property Filename As StringExamples
The following example uses IncludeText.Filename to configure filename as part of the include text workflow. The configured value is checked before the workflow continues.
includeText.Filename = "document.docx";
if (!string.IsNullOrWhiteSpace(includeText.Filename))
{
Console.WriteLine($"Filename: {includeText.Filename}");
}includeText.Filename = "document.docx"
If Not String.IsNullOrWhiteSpace(includeText.Filename) Then
Console.WriteLine($"Filename: {includeText.Filename}")
End If