This example illustrates how to use a Document.CalculateDocumentVariable Event to insert a formatted content via the DOCVARIABLE field with a parameter that is specified via the MERGEFIELD field. The formatted content is loaded into a non-visual RichEditDocumentServer component, which in turn is assigned to the e.Value parameter of a CalculateDocumentVariable event handler.
See also:
How to use document variable (DOCVARIABLE) fields
How to implement mail merge in a RichEditControl
How to: Perform a Mail Merge
Question Comments
Added By: Andrey Kushnarev at: 12/16/2015 9:03:23 AM
How to get DocumentPosition of the current calculated DOCVARIABLE field?
I need to retrieve Font information from this position.
Hello Andrey,
To process your recent post more efficiently, I created a separate ticket on your behalf: T325615: How to get a result range of a DOCVARIABLE field. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.
Please help, how do I get the docvariables in header updated?
Thanks Added By: Mariya (DevExpress Support) at: 8/24/2016 8:08:55 AM
Hello,
I've created a separate ticket on your behalf (T418758: How to update DOCVARIABLE fields in the document header). It has been placed in our processing queue and will be answered shortly.