TX Text Control .NET for Windows Forms

MergeObject Method

Method|Introduced in 23.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.WinForms.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

Description

Merges a single instance of an arbitrary type into the loaded document template. For more information about .NET reflection based object merging read the documentation of the MergeObjects method.

Syntax

public void MergeObject(object mergeData);

Parameters

ParameterDescription
mergeData

Specifies the object to merge into the template.

Examples

The following example uses Merge Object in a focused Mail Merge workflow. The created object is then available to the surrounding document workflow.

mailMerge.MergeObject("Approved");
Console.WriteLine("Mail Merge is ready for use.");