Skip to main content
A newer version of this page is available. .

DOCVARIABLE

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