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

Printing RichTextBox with RadDocument cuts off the large image... Rest of the image is not printed

3 Answers 110 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
N
Top achievements
Rank 1
N asked on 22 May 2012, 06:59 PM
The richTextBox has a RadDocument with a large image of width 1171. The print page only shows part of the image, the rest of the image is not printed. Shown Below is part of xaml of the RadDocument having an image of width 1171.

<t:Paragraph>
      <t:ImageInline Extension="png" Height="43" RawData="iVBORw0KGgoAAAANSUhEUgAABJMAAAArCAIAAABDx17OWbo09GQGz8AAAAASUVORK5CYII=" RotateAngle="0" Width="1171" />

Is this a bug? Any workarounds?

Thanks,

3 Answers, 1 is accepted

Sort by
0
Alex
Telerik team
answered on 25 May 2012, 09:39 AM
Hello,

The image may be clipped when printing if the page size of the sections of the document is smaller then the image. For example the 1171 pixels correspond to approximately 31 cm ( or 12.2 inches) and the width of the A4 paper is 21 cm (about 8.2 inches) - so the image will be clipped.

If you are viewing the document  in  paged layout mode you should see exactly how the document will be printed.

Note, that by default, if the page size of the document is larger than the page size of the printer (for example if you are printing A3 pages on A4 paper), the document pages will be automatically scaled to fit on the page. You can control this behavior by passing different PrintSettings to the Print method of the RadRichTextBox.

I hope this information will be helpful. Please don't hesitate to contact us again if you have more questions. 

Greetings,
Alex
the Telerik team

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

0
N
Top achievements
Rank 1
answered on 29 May 2012, 03:17 PM
In this case the page size of the document is larger than the page size of the printer. So as per your suggestion I tried to play with the print settings by using PrintScaling.ShrinkToPageSize and PrintScaling.None. In both cases, It showed the same result i.e It still prints only part of the image. Do you have an example of the solution you had mentioned in your reply?

Thanks,
0
Boby
Telerik team
answered on 01 Jun 2012, 08:10 AM
Hi N,
What Alexander actually suggested was to use both bigger page size and print scaling setting. This way the document would display the whole image and will be automatically scaled on printing to smaller page.

Greetings,
Boby
the Telerik team

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

Tags
General Discussions
Asked by
N
Top achievements
Rank 1
Answers by
Alex
Telerik team
N
Top achievements
Rank 1
Boby
Telerik team
Share this question
or