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

Document.UpdateDocVariablesBeforePrint Property

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

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v18.2.Core.dll

Declaration

UpdateDocVariablesBeforePrint UpdateDocVariablesBeforePrint { get; set; }

Property Value

Type Description
UpdateDocVariablesBeforePrint

An UpdateDocVariablesBeforePrint enumeration value.

Available values:

Name Description
Auto

Default value.

Always

DOCVARIABLE fields are always recalculated before printing.

Never

DOCVARIABLE fields are never recalculated before printing.

Remarks

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