MergeObject Method
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. WinForms. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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);Public Sub MergeObject(mergeData As Object)Parameters
| Parameter | Description |
|---|---|
| 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.");mailMerge.MergeObject("Approved")
Console.WriteLine("Mail Merge is ready for use.")