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
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