This example illustrates how to generate order details of each customer by performing nested mail merge operation for a specified region using MailMergeDataTable as the data source by ExecuteNestedGroup(MailMergeDataTable dataTable) API.
-
Download this project to a location in your disk.
-
Open the solution file using Visual Studio.
-
Rebuild the solution to install the required NuGet packages.
-
Run the application.
By running this application, you will get the order details in a Word document as follows.
To create order details by nested mail merge operation, design your template Word document with the nested group of merge fields using Microsoft Word. In the below template, Customers is the owner group and it has two child groups, Orders and Products.
Take a moment to peruse the documentation, where you will find other Word document processing operations along with features like mail merge, merge, and split documents, find and replace text in the Word document, protect Word documents, and most importantly PDF and image conversions with code examples.