TX Text Control .NET Server

AsSingleDocument Property

Property|Introduced in 31.0
Namespace
TXTextControl.DocumentServer.DataSources
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 whether to combine the merge result to a single document. If this is set to true, each merge result is separated from the previous one by a section break and starts at a new page. The default value is false.

Syntax

public bool AsSingleDocument { get; set; }

Examples

The following example uses MergeSettings.AsSingleDocument to configure as single document as part of the merge settings workflow. The configured value is checked before the workflow continues.

mergeSettings.AsSingleDocument = true;
if (mergeSettings.AsSingleDocument)
{
    Console.WriteLine("Merge Settings: As Single Document is enabled.");
}