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.