Skip to content

DevExpress-Examples/word-document-api-create-master-detail-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Use the Mail Merge feature enhanced with DOCVARIABLE specifics to create Master-Detail reports.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 7

Languages