TX Text Control .NET Server

Javascript: TXTextControl.IncludeTextField.fileName Property

Property|Introduced in 25.0

Description

Specifies 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

<string> TXTextControl.IncludeTextField.fileName

Examples

The following example demonstrates TXTextControl.IncludeTextField.fileName in a practical document-editing workflow. It specifies 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.

function inspectFileName(includeTextField) {
    const fileName = includeTextField.fileName;
    console.log("file name:", fileName);
}