TX Text Control .NET for Windows Forms

Filename Property

Property|Introduced in 15.0
Namespace
TXTextControl.DocumentServer.Fields
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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}");
}