Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PrintingOptions.UpdateDocVariablesBeforePrint Property

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

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

#Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public bool UpdateDocVariablesBeforePrint { get; set; }

#Property Value

Type Default Description
Boolean false

true, to update fields before a document is printed; otherwise, false.

#Property Paths

You can access this nested property as listed below:

Object Type Path to UpdateDocVariablesBeforePrint
RichEditControlOptionsBase
.Printing .UpdateDocVariablesBeforePrint

#Remarks

#The UpdateDocVariablesBeforePrint Property in DOCX and RTF Documents

The UpdateDocVariablesBeforePrint setting is stored in the document in OpenXml (.docx) format. Microsoft Word preserves this setting when a document is saved, but ignores it. The setting specifies whether to update the DOCVARIABLE field before the document is printed/exported, or before the field is copied. The option also affects the DOCVARIABLE fields update when RTF content is imported.

See Also