Skip to main content

IDocument.IsCreating Property

For internal use. Gets a value indicating whether or not the document is being created.

Namespace: DevExpress.DocumentView

Assembly: DevExpress.Printing.v24.1.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

bool IsCreating { get; }

Property Value

Type Description
Boolean

true if the document creation isn’t finished; otherwise, false.

Remarks

By default, when the Print Preview Form is displayed, if a document’s IDocument.Pages are not ready by that moment (e.g. if the ILink.CreateDocument method was not previously called), the first report page is immediately created and displayed in it. The creation of all other report pages is performed silently when the application is idle, and these pages are progressively rendered in the Print Preview.

This behavior allows end-users to start working with the document before all its pages are ready. However, if you start printing or exporting the document via code before all its pages are ready, an exception will be thrown. To avoid this situation, check the IsCreating property before performing any actions with the current document, and do not perform them until the IsCreating property returns false.

See Also