Error in printing

3 posts, 1 answers
  1. Anoop
    Anoop avatar
    2 posts
    Member since:
    Jul 2012

    Posted 26 Jun 2013 Link to this post

    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. Answer
    Vasil
    Admin
    Vasil avatar
    124 posts

    Posted 01 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
  4. Anoop
    Anoop avatar
    2 posts
    Member since:
    Jul 2012

    Posted 02 Jul 2013 Link to this post

    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
Back to Top