Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

RichEditInvalidFormatExceptionEventArgs.Exception Property

Gets the exception which triggers the InvalidFormatException event.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v19.1.Core.dll

Declaration

public Exception Exception { get; }

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