Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 3.57 KB

File metadata and controls

47 lines (27 loc) · 3.57 KB

Word Processing Document API - Generate, Populate, and Export Master-Detail Invoices

This example demonstrates the use of the Word Processing Document API's Mail Merge functionality to generate invoices from master-detail templates.

word document api master detail invoice result

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

Implementation Details

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.

Files to Review:

Documentation

More Examples

Does This Example Address Your Development Requirements/Objectives?

(you will be redirected to DevExpress.com to submit your response)