RichEditInvalidFormatExceptionEventArgs.Exception Property
Gets the exception which triggers the InvalidFormatException event.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v24.1.Core.dll
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation
Declaration
Property Value
Type | Description |
---|---|
Exception | An Exception object representing an exception which caused the event. |
Remarks
Use the Exception property to get information on the exception. The Exception.Message property contains a string that indicates the reason for the InvalidFormatException event:
- XtraRichEditStringId.Msg_UnsupportedFormatException - “File format is not supported” - The document is in a different format than it is supposed to be.
- XtraRichEditStringId.Msg_EncryptedFile - “Encrypted files are not currently supported” - The document is in an encrypted DOC, DOCX or ODT format.
- XtraRichEditStringId.Msg_UnsupportedDocVersion - “Only MS Word 97 and later versions are supported” - The document is in an obsolete DOC format.
See Also