This example project is a utility that allows you to simplify the mail merge template creation.
Invoke the Fields | New Merge Fields command to specify merge field names in the corresponding dialog. These names are used in code to create a fake data source and assign it to the RichEditMailMergeOptions.DataSource property. After that, the Mailings ribbon page is activated and you can use the Insert Merge Field command to insert a field in the document.
In addition, the Fields ribbon page contains commands that allow you to insert INCLUDEPICTURE and DOCVARIABLE fields and an initial field pattern in the document. You can accomplish this manually by the CTRL+F9 key press.
You can save the document by the File | Save command and load in your application later as a mail merge template.
- Form1.cs (VB: Form1.vb)
- NewFieldsForm.cs (VB: NewFieldsForm.vb)
(you will be redirected to DevExpress.com to submit your response)