The following example illustrates how to use the DOCVARIABLE field and the Document.CalculateDocVariable event to insert dynamic content in a document.
In this example, a variable name specified in the DOCVARIABLE indicates a choice between location and weather, while the location itself is specified by the field argument.
Note: We do not provide a code sample to retrieve weather information. You can implement a custom weather information provider.
The MailMergeRecordStarted event is handled to insert a hidden document's creation date.
The MyProgressIndicatorService class is implemented and registered as a service to use the ProgressBar control.
- Form1.cs (VB: Form1.vb)
- MyProgressIndicator.cs (VB: MyProgressIndicator.vb)
(you will be redirected to DevExpress.com to submit your response)