TX Text Control .NET Server

SearchPath Property

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

Description

Specifies a directory name where sub-templates and images (for image merging) should be searched. If SearchPath is empty, the root directory is used.

Syntax

public string SearchPath { get; set; }

Examples

The following example uses MailMerge.SearchPath to configure search path as part of the mail merge workflow. The configured value is checked before the workflow continues.

mailMerge.SearchPath = "document.docx";
if (!string.IsNullOrWhiteSpace(mailMerge.SearchPath))
{
    Console.WriteLine($"Search Path: {mailMerge.SearchPath}");
}