Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditInvalidFormatExceptionEventArgs.Exception Property

Gets the exception which triggers the InvalidFormatException event.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

#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