Back to Devexpress

Document.UpdateDocVariablesBeforePrint Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-document-71d0145e.md

latest2.4 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
UpdateDocVariablesBeforePrint UpdateDocVariablesBeforePrint { get; set; }
vb
Property UpdateDocVariablesBeforePrint As UpdateDocVariablesBeforePrint

Property Value

TypeDescription
UpdateDocVariablesBeforePrint

An UpdateDocVariablesBeforePrint enumeration value.

|

Available values:

NameDescription
Auto

Default value.

| | Always |

DOCVARIABLE fields are always recalculated before printing.

| | Never |

DOCVARIABLE fields are never recalculated before printing.

|

Remarks

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

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

Document Interface

Document Members

DevExpress.XtraRichEdit.API.Native Namespace