This example demonstrates the use of the Word Processing Document API's Mail Merge functionality to generate invoices from master-detail templates.
Important
The Universal Subscription or an additional Office File API Subscription is required to use this example in production code. For pricing information, please refer to the following page: DevExpress Subscription
Word Processing Document API allows you to perform a mail merge with master-detail templates. The TableStart:Name and TableEnd:Name merge fields define master and detail regions. The region name should match the group or table name in your data source.
Call the RichEditDocumentServer.CreateMailMergeOptions() method to create a new MailMergeOptions object. This object contains mail merge options. Specify the object's DataSource property to set the mail merge database. This example uses sample NWind data converted to a flat JSON database file.
Pass the MailMergeOptions object as the RichEditDocumentServer.MailMerge method parameter to apply specified options.
- NWindData.cs (VB: NWindData.vb)
- Program.cs (VB: Program.vb)
(you will be redirected to DevExpress.com to submit your response)
