Page rendering when deployed overflows width

2 posts, 0 answers
  1. Scott Waye
    Scott Waye avatar
    168 posts
    Member since:
    Nov 2009

    Posted 23 Jul 2018 Link to this post


    I have a report which is displayed using the the HTML5 viewer and can be exported/printed using the command buttons at the top of the viewer.  Locally, under IIS Express, the report is fine and renders on a Legal size page with small margins (0.3cm and 0.4cm left/right) without overflowing to the right.  However when deployed to a hosting provider the report overflows (when printing or exporting to PDF) such that the right hand parts of the report are rendered onto a new page.  Its as though its picking up some settings like paper size or margins from the server rather than the report definition (trdx), is that possible?  Are there any setting when rendering that are picked up from the server?

  2. Silviya
    Silviya avatar
    439 posts

    Posted 26 Jul 2018 Link to this post

    Hello Scott,

    In general, reports are processed and rendered on the server machine, where pages are created based on the report's PageSettings properties - Page Setup.

    If you print from the viewer, the report is exported in PDF with injected Adobe JavaScript that forces the browser's PDF plugin to show its Print dialog - Printing Reports. The viewer's ViewMode = PrintPreview will show you how the report will look in the PDF that is returned for printing.

    I am afraid that we have no control over the print settings in the print dialog. The reporting engine produces the document that is sent for printing, but if the client has preferences for default selected printer, page size and etc., the application that handles the delivered document can scale and modify its layout.
    So, please check the additional setting for setting page size in print dialog before printing.

    Still, some print settings can be affected by Adobe JavaScript settings that can be included in the report, please take a look at this example which shows the approach.

    If you need further help, please open new support ticket and send us the following information:
    - the report so we can check its page settings;
    - more information about the hosting provider;

    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top