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

DocumentViewer.RequestDocumentCreation Property

Specifies whether to create a document automatically, or on a user request.

Namespace: DevExpress.XtraPrinting.Preview

Assembly: DevExpress.XtraPrinting.v24.2.dll

NuGet Package: DevExpress.Win.Printing

#Declaration

[DefaultValue(true)]
public bool RequestDocumentCreation { get; set; }

#Property Value

Type Default Description
Boolean true

true to create a document on a user request; otherwise false.

#Remarks

When the DocumentViewer.DocumentSource property is specified and the RequestDocumentCreation is enabled, the document is automatically created every time the DocumentViewer is initialized. Note that it is too late to change the RequestDocumentCreation property on the form’s Load event. For the runtime property change to take effect, consider executing it on the Document Viewer’s Load event or earlier.

If the RequestDocumentCreation property is set to false, the document is created by calling the CreateDocument method of the DocumentViewer‘s document source object (an XtraReport, printing link or Printing System).

See Also