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

Printing fails every time

4 Answers 94 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
H.-G.
Top achievements
Rank 1
H.-G. asked on 18 Oct 2012, 09:44 AM
Every time we try to print a Document a white Space is added below every page. Even the sample from the Demo-App shows this Problem. We tested this on several machines with different Printers. We use the newest Assemblies (2012.2.1015.40). Attached is a Screenhot from a PDF-File that shows the default Sample from the Demo App printed via PDFCreator. We tried to change the SectionDefaultPageMargin, SectionDefaultPageSize, footer content, PrintSettings.PrintScaling, but nothing solves the issue.

4 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 18 Oct 2012, 12:11 PM
Hello,

When the comments of the document are shown (RadRichTextBox.ShowComments="True"), the document has to be scaled in order to have the comments show in the printed document. As the height/width ratio must be kept, this causes shrinking of the text in height, too. You can see that this is also the behavior in MS Word when there are comments in the document and they are shown at the time you print the document.

You can hide the comments in order to print just the body of the document and then there will be no additional white space at the end of each page. This can be done using the ribbon UI - Review Tab -> Show/Hide Comments.

I hope this helps.

Regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
H.-G.
Top achievements
Rank 1
answered on 18 Oct 2012, 01:04 PM
Thank you for your Answer.
This solves the Problem in the sample project but not in ours. In the Editor the document is displayed correctly but printing the document is still buggy. We don't use comments in our Editor. If the Print-Window resizes the document to keep the ration it might has something to do with the the display mode in the editor. Even blank pages are not displayed correctly after printing.

0
Iva Toteva
Telerik team
answered on 19 Oct 2012, 10:03 AM
Hello,

We are not sure what could be causing the problem on your end, as everything works correctly in our tests.

Could you isolate the issue in a sample project and send it to us in a support ticket, so that we can look into it and provide further assistance?

Looking forward to your reply, either here or in a support ticket.

Kind regards,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
H.-G.
Top achievements
Rank 1
answered on 22 Oct 2012, 01:53 PM
We found the answer. We have to set the SectionDefaultPageSize. The default of 816,1056 does not work in PrintMode. After using the the PaperTypeConverter we got a Size of 793, 1123 for A4-Paper. This dimension works and the footer is displayed correctly.
Tags
RichTextBox
Asked by
H.-G.
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
H.-G.
Top achievements
Rank 1
Share this question
or