SearchPath Property
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property SearchPath As StringExamples
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}");
}mailMerge.SearchPath = "document.docx"
If Not String.IsNullOrWhiteSpace(mailMerge.SearchPath) Then
Console.WriteLine($"Search Path: {mailMerge.SearchPath}")
End If