Back to Devexpress

DocumentViewer.RequestDocumentCreation Property

windowsforms-devexpress-dot-xtraprinting-dot-preview-dot-documentviewer-ffa13b98.md

latest2.4 KB
Original Source

DocumentViewer.RequestDocumentCreation Property

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

Namespace : DevExpress.XtraPrinting.Preview

Assembly : DevExpress.XtraPrinting.v25.2.dll

NuGet Package : DevExpress.Win.Printing

Declaration

csharp
[DefaultValue(true)]
public bool RequestDocumentCreation { get; set; }
vb
<DefaultValue(True)>
Public Property RequestDocumentCreation As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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

DocumentViewer Class

DocumentViewer Members

DevExpress.XtraPrinting.Preview Namespace