This is a migrated thread and some comments may be shown as answers.

RichTextBox crashing when openening DocX file

1 Answer 99 Views
CAB Enabling Kit
This is a migrated thread and some comments may be shown as answers.
Bernhard
Top achievements
Rank 1
Bernhard asked on 27 Feb 2012, 05:14 PM
It seems the rich text box is crashing when I try to open a docx document with tables. I couldn't attach a document which throws this error (because the web page doesn't allow docx files), but I can send it to someone interested in this error.

Here is the crash report:

System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.StyleRepository.EvaluateProperty[T](Style elementStyle, Style parentStyle, Object propertyKey, T defaultValue)

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.StyleRepository.EvaluateProperty[T](Style elementStyle, Object propertyKey, T defaultValue)

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.Import.ParagraphImporter.ApplyStyle(Paragraph paragraph, StyleRepository styleRepository, Style style)

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.Import.TableImporter.ApplyBlockStyle(TableCell cell, Style style)

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.Import.TableImporter.ApplyConditionalStyle(TableCell cell, TableStyleConstrains availableStyles, Int32 currentRowIndex, Int32 currentColumnIndex)

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.Import.TableImporter.ApplyConditionalStyle(Table table, Style style)

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.Import.TableImporter.Import(Style parentStyle)

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.Import.MainDocumentImporter.BuildBody()

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.Import.MainDocumentImporter.BuildDocument()

   bei Telerik.WinControls.RichTextBox.FileFormats.OpenXml.Docx.Import.DocxImporter.Import()

   bei TelerikEditor.MainForm.OpenDocument()

   bei Telerik.WinControls.UI.BackstageButtonItem.OnClick(EventArgs e)

   bei Telerik.WinControls.RadItem.DoClick(EventArgs e)

   bei Telerik.WinControls.RadItem.RaiseBubbleEvent(RadElement sender, RoutedEventArgs args)

   bei Telerik.WinControls.ComponentInputBehavior.OnMouseUp(MouseEventArgs e)

   bei Telerik.WinControls.RadControl.OnMouseUp(MouseEventArgs e)

   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

   bei System.Windows.Forms.Control.WndProc(Message& m)

   bei Telerik.WinControls.RadControl.WndProc(Message& m)

   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

 

1 Answer, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 28 Feb 2012, 05:24 PM
Hi Bernhard,

Thank you for writing.

I confirm there is an issue with loading docx files with specifically formatted tables in RadRichTextBox. The issue is already logged in our Public Issue Tracker under ID 9635. To vote for it and subscribe for its status updates, please follow this link: http://www.telerik.com/support/pits.aspx#/details/Issue=9635

Please excuse is for the caused inconvenience. We will do our best to address the issue in a future release.

Regards,
Boryana
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
CAB Enabling Kit
Asked by
Bernhard
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or