Back to Devexpress

PrintingOptions.UpdateDocVariablesBeforePrint Property

officefileapi-devexpress-dot-xtrarichedit-dot-printingoptions-0c00443a.md

latest2.3 KB
Original Source

PrintingOptions.UpdateDocVariablesBeforePrint Property

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

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath 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

Fields in Rich Text Documents

PrintingOptions Class

PrintingOptions Members

DevExpress.XtraRichEdit Namespace