Back to Devexpress

RichEditInvalidFormatExceptionEventArgs.Exception Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditinvalidformatexceptioneventargs.md

latest2.0 KB
Original Source

RichEditInvalidFormatExceptionEventArgs.Exception Property

Gets the exception which triggers the InvalidFormatException event.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public Exception Exception { get; }
vb
Public ReadOnly Property Exception As Exception

Property Value

TypeDescription
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

RichEditInvalidFormatExceptionEventArgs Class

RichEditInvalidFormatExceptionEventArgs Members

DevExpress.XtraRichEdit Namespace