RichTextBox crashing when openening DocX file

2 posts, 0 answers
  1. Bernhard
    Bernhard avatar
    1 posts
    Member since:
    Feb 2012

    Posted 27 Feb 2012 Link to this post

    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)


  2. Boryana
    Boryana avatar
    330 posts

    Posted 28 Feb 2012 Link to this post

    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:

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

    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. DevCraft R3 2016 release webinar banner
Back to Top