Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to use the Document.CalculateDocumentVariable event to insert a formatted content via the DOCVARIABLE field with a parameter

$
0
0

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.

Added By: Oleg (DevExpress Support) at: 12/17/2015 12:18:36 AM    

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.

Added By: Petar Kosama at: 8/24/2016 8:01:46 AM    I have the problem that DOCVARIABLEs aren't being calculated when placed in the header of the document. If they are placed in the content then it works properly.

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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles