Skip to main content

ReportDesignerDocument.Closing Event

Occurs when a report document is about to be closed.

Namespace: DevExpress.Xpf.Reports.UserDesigner

Assembly: DevExpress.Xpf.ReportDesigner.v24.1.dll

NuGet Package: DevExpress.Wpf.Reporting

Declaration

public event EventHandler<ReportDesignerDocumentClosingEventArgs> Closing

Event Data

The Closing event's data class is ReportDesignerDocumentClosingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
Document Gets the report document currently being processed. Inherited from ReportDesignerDocumentCancelEventArgs.
ShowConfirmationMessageIfDocumentContainsUnsavedChanges Specifies whether to show the confirmation message allowing users to save changes made in the report document.

Remarks

The Closing event allows you to perform different actions before a report document is closed.

The document currently being processed is specified by the ReportDesignerDocumentCancelEventArgs.Document property of the event parameter. To cancel closing the document, set the Cancel property to true. You can also use the ReportDesignerDocumentClosingEventArgs.ShowConfirmationMessageIfDocumentContainsUnsavedChanges property to specify whether to show the confirmation dialog for saving changes made in the report document.

To respond to closing the document, handle the ReportDesignerDocument.Closed event.

See Also