Skip to main content

ReportServicePreviewModel.IsCreating Property

Gets a value indicating whether the document is being created.

Namespace: DevExpress.Xpf.Printing

Assembly: DevExpress.Xpf.Printing.v24.2.dll

NuGet Package: DevExpress.Wpf.Printing

Declaration

public override bool IsCreating { get; protected set; }

Property Value

Type Description
Boolean

true if the document creation is not finished; otherwise, false.

Remarks

By default, when a report’s Print Preview is displayed, if a document’s pages are not ready by that time (e.g., if the ReportServicePreviewModel.CreateDocument method was not previously called), the first report page is immediately created and displayed. 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 value before performing any actions with the current document, and do not perform them until the IsCreating property returns false.

See Also