Skip to main content

DocumentViewer.RequestDocumentCreation Property

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

Namespace: DevExpress.XtraPrinting.Preview

Assembly: DevExpress.XtraPrinting.v23.2.dll

NuGet Packages: DevExpress.Win.Navigation, 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