Back to Devexpress

FieldOptions.UpdateDocVariablesBeforePrint Property

officefileapi-devexpress-dot-xtrarichedit-dot-fieldoptions-dc03ede0.md

latest2.7 KB
Original Source

FieldOptions.UpdateDocVariablesBeforePrint Property

Specifies whether to refresh the values of document variables when the document is printed or exported to PDF.

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(false)]
public bool UpdateDocVariablesBeforePrint { get; set; }
vb
<DefaultValue(False)>
Public Property UpdateDocVariablesBeforePrint As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to ensure that the printed and exported values are up to date; otherwise false.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to UpdateDocVariablesBeforePrint
RichEditControlOptionsBase

.Fields .UpdateDocVariablesBeforePrint

|

Remarks

The UpdateDocVariablesBeforePrint option setting affects any document loaded in the RichEditControl. If a document has the Document.UpdateDocVariablesBeforePrint property set, its value has priority over the UpdateDocVariablesBeforePrint setting.

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

UpdateDocVariablesBeforePrint

FieldOptions Class

FieldOptions Members

DevExpress.XtraRichEdit Namespace