Printing problems

5 posts, 0 answers
  1. Auvo
    Auvo avatar
    34 posts
    Member since:
    Jul 2011

    Posted 25 Oct 2011 Link to this post

    Hi,

    I have problems to use print-method in RadRichTextBox control. E.g when I dynamically load RadRichTextBox to the visual tree and then set the document. This throws an null exception when I call the Print-method.

    RadRichTextBox textBox = new RadRichTextBox();
    grid.Children.Add(textBox);
    textBox.ApplyTemplate();
    textBox.UpdateEditorLayout();
    textBox.Document = this.CreateDocument();
    textBox.Print("MyDoc", PrintMode.Native);  // It crash in here!

    CreateDocument returns a valid document, I have tested it by loading it to radRichtextbox without printing.

    Hopefully you can see directly what is wrong in my code... if you can provide sample project, that would also help.

     I'm using WPF version of Telerik controls (ver. 2011.2.712.40)

    Regards,
    Auvo



  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 26 Oct 2011 Link to this post

    Hello Auvo,

    Unfortunately there was a bug with native printing, which was introduced at a very late stage of development and passed in the final release build for the Q2 official release (2011.2.712). 
    The good news is that we fixed it immediately in a subsequent internal build. If you upgrade to the Q2 SP1 (2011.2.920) or the recently released Q3 Beta (2011.3.1020), the issue will no longer be present.

    All the best,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Auvo
    Auvo avatar
    34 posts
    Member since:
    Jul 2011

    Posted 26 Oct 2011 Link to this post

    Great! I'll download the SP1 and try that

    Thank's,
    Auvo
  5. Avrohom Yisroel
    Avrohom Yisroel avatar
    35 posts
    Member since:
    Jan 2011

    Posted 29 Feb 2012 Link to this post

    Hello,

    I'm using the full Q3 release 2011.3.1220.1040, and am still getting the same exception when I call..

    rtb.Print(PrintMode.Native);

    How do I call the print method?
  6. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 01 Mar 2012 Link to this post

    Hi Avrohom,

    The bug reported in this forum has been fixed in the 2011 Q3 SP1 version you have quoted as the one you use.

    There is a problem with the 2011 Q3 SP1 (2011.3.1220) only in Silverlight, when there are headers and footers in the document. Both issues are not present with the latest 2012 Q1.

    All the best,
    Iva Toteva
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top
UI for WPF is Visual Studio 2017 Ready