This is a migrated thread and some comments may be shown as answers.
Page rendering when deployed overflows width
1 Answer 5 Views
This is a migrated thread and some comments may be shown as answers.
Scott Waye
Top achievements
Rank 1
Veteran
Scott Waye asked on 23 Jul 2018, 01:50 PM

Hi,

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?

1 Answer, 1 is accepted

Sort by
0
Silviya
Telerik team
answered on 26 Jul 2018, 08:54 AM
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;

Regards,
Silviya
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
Asked by
Scott Waye
Top achievements
Rank 1
Veteran
Answers by
Silviya
Telerik team
Share this question
or