Back to Devexpress

DOCVARIABLE

aspnet-114116-components-rich-text-editor-mail-merge-field-codes-docvariable.md

latest1.1 KB
Original Source

DOCVARIABLE

  • Jun 17, 2021

Mixed field

{ DOCVARIABLE “variable name” “argument1” “argument 2”… }

Inserts the value of a document variable specified by a text in the field argument(s). Before a field is updated, the ASPxRichEdit.CalculateDocumentVariable event is fired allowing you to manually calculate the required value. The CalculateDocumentVariableEventArgs.Arguments provides access to a collection of arguments contained within the field.

A common task is to evaluate DOCVARIABLE fields in a document depending on the variable name and argument, and then substitute fields with their values.

Note

You can return the text or the entire IRichEditDocumentServer.Document as a document variable.

See Also

Demo: Document Variables Support