Back to Devexpress

ReportDesignerBase.DocumentClosing Event

wpf-devexpress-dot-xpf-dot-reports-dot-userdesigner-dot-reportdesignerbase-bc1e8717.md

latest3.5 KB
Original Source

ReportDesignerBase.DocumentClosing Event

Occurs each time a report designer document is about to be closed.

Namespace : DevExpress.Xpf.Reports.UserDesigner

Assembly : DevExpress.Xpf.ReportDesigner.v25.2.dll

NuGet Package : DevExpress.Wpf.Reporting

Declaration

csharp
public event EventHandler<ReportDesignerDocumentClosingEventArgs> DocumentClosing
vb
Public Event DocumentClosing As EventHandler(Of ReportDesignerDocumentClosingEventArgs)

Event Data

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

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
DocumentGets the report document currently being processed. Inherited from ReportDesignerDocumentCancelEventArgs.
ShowConfirmationMessageIfDocumentContainsUnsavedChangesSpecifies whether to show the confirmation message allowing users to save changes made in the report document.

Remarks

The DocumentClosing event allows you to perform different actions before an individual 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 report designer documents, use the ReportDesignerBase.DocumentClosed event.

See Also

DocumentClosed

Closing

Closed

ReportDesignerBase Class

ReportDesignerBase Members

DevExpress.Xpf.Reports.UserDesigner Namespace