Skip to content

Use the DOCVARIABLE field and the Document.CalculateDocVariable event to insert dynamic content in a document.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/how-to-use-docvariable-fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Use Document Variable (DOCVARIABLE) Fields to Insert Dynamic Content

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.

Files to Review

Documentation

Does this example address your development requirements/objectives?

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

About

Use the DOCVARIABLE field and the Document.CalculateDocVariable event to insert dynamic content in a document.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •