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

PrintingSystemPreviewModel.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 isn’t 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 LinkBase.CreateDocument method wasn’t 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 before performing any actions with the current document, and don’t perform them until the IsCreating property returns false.

See Also