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

Print/Preview Landscape Document

2 Answers 254 Views
RichTextEditor
This is a migrated thread and some comments may be shown as answers.
Stepan
Top achievements
Rank 1
Stepan asked on 27 Mar 2015, 07:09 AM
Hi.
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:

radRichTextEditor1.ChangeSectionPageOrientation(PageOrientation.Landscape);
RadPrintDocument document = new RadPrintDocument();
document.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Simplex;
document.PrinterSettings.DefaultPageSettings.Landscape = true;
document.Landscape = true;
radRichTextEditor1.PrintPreview(document);
 
thank you in advance.

2 Answers, 1 is accepted

Sort by
0
Stepan
Top achievements
Rank 1
answered on 30 Mar 2015, 08:14 AM
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);
                    radPdfViewer1.LoadDocument(s);
                    document.Landscape = true;
                    document.DefaultPageSettings.Margins = new Margins(0, 0, 0, 0);
                    document.PrinterSettings.Duplex = System.Drawing.Printing.Duplex.Simplex;
                    radPdfViewer1.PrintPreview(document);
                }
0
Hristo
Telerik team
answered on 01 Apr 2015, 06:02 AM
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.

Regards,
Hristo Merdjanov
Telerik
 

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

 
Tags
RichTextEditor
Asked by
Stepan
Top achievements
Rank 1
Answers by
Stepan
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or