Back to Devexpress

ReportDesignerDocument.SaveFailed Event

wpf-devexpress-dot-xpf-dot-reports-dot-userdesigner-dot-reportdesignerdocument-bba02c25.md

latest4.0 KB
Original Source

ReportDesignerDocument.SaveFailed Event

Occurs when the attempt to save a report displayed in the current designer document fails.

Namespace : DevExpress.Xpf.Reports.UserDesigner

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

NuGet Package : DevExpress.Wpf.Reporting

Declaration

csharp
public event EventHandler<ReportDesignerDocumentSaveFailedEventArgs> SaveFailed
vb
Public Event SaveFailed As EventHandler(Of ReportDesignerDocumentSaveFailedEventArgs)

Event Data

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

PropertyDescription
DocumentGets the report document currently being processed. Inherited from ReportDesignerDocumentOperationFailedEventArgs.
ErrorMessageGets or sets an error description displayed within an error message box. Inherited from OperationFailedEventArgs.
ExceptionGets an exception that raised the corresponding event. Inherited from OperationFailedEventArgs.
RethrowGets or sets a value that specifies whether to throw an exception on a failure. Inherited from OperationFailedEventArgs.
ShowErrorMessageGets or sets a value that specifies whether to display an error message box. Inherited from OperationFailedEventArgs.
ShowSaveFileDialogToSelectNewStorageGets or sets a value that specifies whether to invoke the Save File dialog to select another storage for saving a report.
StorageGets the storage that raised the event.

Remarks

Handle the SaveFailed event to respond to the failure of saving a report displayed in the current designer document to a storage.

Use the Exception property of the event parameter to get the exception that caused the failure. Enable the ShowSaveFileDialogToSelectNewStorage property to invoke the Save File dialog to select another storage for saving the report. The event parameter’s properties also allow you to specify the error description, whether to show the error message, etc.

See Also

Saved

DocumentSaved

DocumentSaveFailed

ReportDesignerDocument Class

ReportDesignerDocument Members

DevExpress.Xpf.Reports.UserDesigner Namespace