TX Text Control .NET Server

ImageSearchPath Property

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

Description

Sets a file path that is used to search for resources like images or hypertext links. This path replaces all absolute file paths used in the document.

Syntax

public string ImageSearchPath { get; set; }

Examples

The following example configures how a WordprocessingML template is loaded by using LoadSettings.ImageSearchPath.

LoadSettings loadSettings = new();

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

textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);