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

Error in printing

2 Answers 72 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Anoop
Top achievements
Rank 1
Anoop asked on 26 Jun 2013, 03:56 PM
Hi,
I am using Rad rich text box for displaying word documents stored in database . When I try to print the document, I get this error (screenshot attached). However , the document gets printed properly and this error is thrown before the print completed event is executed . Another thing t note is that the error is not thrown on all computers and is not handled by .NET. The version number of my controls is 2012.2.0607.1040 
I am using the native mode to print the documents . 

Regards
Aadil

2 Answers, 1 is accepted

Sort by
0
Accepted
Vasil
Telerik team
answered on 01 Jul 2013, 03:43 PM
Hi Aadil,

Thank you for contacting us.

There are some known issues with TableMovementUILayer in 2012 Q2 (2012.2 607) version of RadRichTextBox which we have managed to resolve in 2013 Q2 SP (2012.2 725).

If you are not able to update your project you could disable the TableMovementUILayer causing the problem at all or just while printing. For example:

class CustomUILayerBuilder : UILayersBuilder
{
    protected override void BuildUILayersOverride(IUILayerContainer uiLayerContainer)
    {
        base.BuildUILayersOverride(uiLayerContainer);
 
        uiLayerContainer.UILayers.Remove(DefaultUILayers.TableMovementLayer);
    }
}
 
private void radRichTextBox_CommandExecuting(object sender, CommandExecutingEventArgs e)
{
    if (e.Command is PrintCommand)
    {
        this.radRichTextBox.UILayersBuilder = new CustomUILayerBuilder();
    }
}
 
private void radRichTextBox_PrintCompleted(object sender, PrintCompletedEventArgs e)
{
    this.radRichTextBox.UILayersBuilder = new UILayersBuilder();
}

For detailed information about UILayers please refer to this help article.

Again if you upgrade to 2012 Q2 SP1 or a later version, the problem should not occur even if you do not remove the layer.

I hope this information helps. Don't hesitate to contact us if you have other questions.

Regards,
Vasil
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Anoop
Top achievements
Rank 1
answered on 02 Jul 2013, 05:54 PM
Thanks for your reply . I have now upgraded to the latest version of Telerik DLLs (Q2 2013) and the error is not thrown after the upgrade .

Regards
Aadil
Tags
RichTextBox
Asked by
Anoop
Top achievements
Rank 1
Answers by
Vasil
Telerik team
Anoop
Top achievements
Rank 1
Share this question
or