Skip to main content
.NET Framework 4.5.2+

Document.UpdateDocVariablesBeforePrint Property

Gets or sets whether DOCVARIABLE fields are automatically updated before a document is printed or exported to PDF.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v22.1.Core.dll


UpdateDocVariablesBeforePrint UpdateDocVariablesBeforePrint { get; set; }

Property Value

Type Description

An UpdateDocVariablesBeforePrint enumeration value.


The UpdateDocVariablesBeforePrint setting is stored within the document in OpenXml (.docx) format. Microsoft Word preserves this setting when a document is re-saved, not making use of it.

The UpdateDocVariablesBeforePrint property has priority over the FieldOptions.UpdateDocVariablesBeforePrint setting of the RichEditControl.

See Also