Declined
Last Updated: 28 Aug 2019 11:05 by ADMIN
Yaroslav
Created on: 22 Aug 2019 06:32
Category: RichTextBox
Type: Bug Report
1
InvalidCastException when open certain docx documents

Hi Guys,

Our application works with a document storage and we use RadRichTextBox to allow users edit and view the documents. Unfortunately, many documents cannot be opened due to the following exception we get:

Unable to cast object of type 'Telerik.Windows.Documents.Model.FieldRangeStart' to type 'Telerik.Windows.Documents.Model.AnnotationRangeEnd

As result we receive complains from our users. Could you please facilitate with solving it? 

I have attached a simple test application with the problematic document as well the stacktrace. 

Best regards,

Yaroslav 

1 comment
ADMIN
Boby
Posted on: 28 Aug 2019 11:05

Hi Yaroslav,

I am going to decline the item, as the issue you are experiencing is already known: RichTextBox: NullReferenceException when importing docx document containing simple field without run in it. In case this is the only document you are experiencing the issue with, I am attaching a modified version which works around it.

Also, the document contains some unsupported FORMTEXT fields, which is present as a separate feature request here: RichTextBox: Implement support for Legacy Forms Form Fields.

Regards,
Boby
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Attached Files: