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

4 posts, 0 answers
  1. N
    N avatar
    21 posts
    Member since:
    May 2012

    Posted 22 May 2012 Link to this post

    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,
  2. Alex
    Admin
    Alex avatar
    130 posts

    Posted 25 May 2012 Link to this post

    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 >>

  3. N
    N avatar
    21 posts
    Member since:
    May 2012

    Posted 29 May 2012 Link to this post

    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,
  4. Boby
    Admin
    Boby avatar
    763 posts

    Posted 01 Jun 2012 Link to this post

    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 >>

Back to Top