TX Text Control .NET Server

Interpolation Property

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

Description

Gets or sets whether the rendered document is interpolated during the process. The higher the value, the better the quality, but also the slower the rendering process and vice versa.

Syntax

public Interpolation Interpolation { get; set; }

Members

ValueDescription
NoneDocuments are rendered without interpolation. This is the default.
Interpolation2xDocuments are rendered using 2x interpolation.
Interpolation3xDocuments are rendered using 3x interpolation.
Interpolation4xDocuments are rendered using 4x interpolation. This option is the most time-consuming one.

Examples

DocumentServer.Web.DocumentViewer.Interpolation belongs to the legacy Web Forms viewer. In the current ASP.NET Core viewer, configure the server-rendered component through DocumentViewerSettings.DocumentPath; interactive page state and styling are handled by the viewer client.

documentViewerSettings.DocumentPath = @"App_Data\document.docx";
if (!string.IsNullOrWhiteSpace(documentViewerSettings.DocumentPath))
{
    Console.WriteLine($"Document Path: {documentViewerSettings.DocumentPath}");
}