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

[Solved] RichTextBox exception

1 Answer 133 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Harshu Kanitkar
Top achievements
Rank 1
Harshu Kanitkar asked on 25 Jan 2011, 05:39 PM
Hello,

I am evaluating the RichTextBox to view word documents in Silverlight. One of the documents throws the following exception:

Message: Unhandled Error in Silverlight Application
Code: 4004   
Category: ManagedRuntimeError      
Message: System.InvalidCastException: Unable to cast object of type 'Telerik.Windows.Documents.Layout.TableRowLayoutBox' to type 'Telerik.Windows.Documents.Layout.TableLayoutBox'.
   at Telerik.Windows.Documents.Layout.TableRowLayoutBox.MeasureOverride(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.TableLayoutBox.MeasureOverride(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.SectionLayoutBox.MeasureOverride(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.MeasureCore(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.Measure(SizeF availableSize)
   at Telerik.Windows.Documents.Layout.LayoutElement.Arrange(RectangleF finalRect)
   at Telerik.Windows.Documents.Layout.DocumentLayoutBox.ArrangeTask.ArrangeCallback(Object state)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()    

Line: 62
Char: 13
Code: 0
URI:
http://localhost:61956/

 
Is this a bug? Any help to resolve this issue will be greatly appreciated. The file I am using is 1.5 megs. Can this be the issue? Is there a max size limit?

I can email the doc file if required  (cannot attach doc files to forum post).

Thanks!
Harshu

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 28 Jan 2011, 09:02 AM
Hi Harshu Kanitkar,

Thank you for reporting this problem.
The size of the document reflects on the performance of opening the document and typing in it, but such an exception should not occur. We have tested RadRichTextBox with bigger documents and everything has worked great.
You can open a support ticket (General Feedback) and attach the document in it, so that we can look into the issue and fix it.

Best wishes,
Iva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
RichTextBox
Asked by
Harshu Kanitkar
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or