Print/Preview Landscape Document

3 posts, 0 answers
  1. Stepan
    Stepan avatar
    2 posts
    Member since:
    Mar 2015

    Posted 27 Mar 2015 Link to this post

    I'm trying to print/preview the radrichtexteditor where document orientation of the document is landscape and contains table. In radrichtexteditor table is displaying good,
    but in Preview mode table is truncating. I dont know why...
    It`s my code:

    RadPrintDocument document = new RadPrintDocument();
    document.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Simplex;
    document.PrinterSettings.DefaultPageSettings.Landscape = true;
    document.Landscape = true;
    thank you in advance.
  2. Stepan
    Stepan avatar
    2 posts
    Member since:
    Mar 2015

    Posted 30 Mar 2015 Link to this post

    I found a way circumvent this problem:
                    PdfFormatProvider provider = new PdfFormatProvider();
                    RadPrintDocument document = new RadPrintDocument();
                    using (MemoryStream s = new MemoryStream())
                        provider.Export(radRichTextEditor1.Document, s);
                        document.Landscape = true;
                        document.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0);
                        document.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Simplex;
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hristo
    Hristo avatar
    714 posts

    Posted 01 Apr 2015 Link to this post

    Hi Stepan,

    Thank you for writing. 

    The problem you are experiencing is a known issue with the RadRichTextEditor. It is logged in our feedback portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item

    I confirm that the proposed work around is working. Thank you for sharing it with our community.

    Should you have further questions please do not hesitate to write back.

    Hristo Merdjanov

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top