Rich Text Editor for WinForms - Handle the CalculateDocumentVariable Event to Insert Formatted Content
This example illustrates how to use the Document.CalculateDocumentVariable event to insert formatted content. The DOCVARIABLE has a parameter specified by the MERGEFIELD field and looks as follows:
{ DOCVARIABLE DetailInfo "{ MERGEFIELD DetailId }" }
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.
- Form1.cs (VB: Form1.vb)
- Program.cs (VB: Program.vb)
- How to Use Document Variable (DOCVARIABLE) Fields to Insert Dynamic Content
- How to Implement Mail Merge in a RichEditControl
(you will be redirected to DevExpress.com to submit your response)