This example shows how the MailMerge feature enhanced with the DOCVARIABLE field specifics with the help of the RichEditDocumentServer text processing engine empowers the users to accomplish complex reporting tasks, such as creating Master-Detail reports.
Template for each level is loaded in a document container that is the RIchEditDocumentServer instance and then a mail merge operation is performed. Mail merge destination is another RichEditDocumentServer instance playing the role of a text processor.
Data are obtained from three objects of List type, which contain Supplier, Product and OrderDetail class instances respectively. Master-detail relationships are formed by using ID fields within those objects.
Click Merge to New Document at the Mailings Ribbon group to create a report.
The application screenshot is shown below.