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

Scaling / resizing of reports at runtime

4 Answers 518 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fridli Jacober
Top achievements
Rank 1
Fridli Jacober asked on 06 Feb 2015, 12:22 PM
Hello

A user asked us if it's possible to "change the font size for printing".
I guess this isn't really possible, since the text boxes are fixed sizes and positions and if the text would get bigger it just would be cut...?
So my question: Is it possible to choose the scaling of a report? E. g. if I've designed an A4-report, choose a scaling of 200% and get 4 printed A4 pages?

Thx

P.S. @Steff: There are some open answers from you to threads by me. I'll come back to them by time...

4 Answers, 1 is accepted

Sort by
0
Hinata
Top achievements
Rank 1
answered on 11 Feb 2015, 08:29 AM
Hi Fridli,

The scaling is not a property of the report. It depends on your printer driver. Check here for more information: How can I enlarge a PDF for printing?
0
Fridli Jacober
Top achievements
Rank 1
answered on 17 Feb 2015, 08:33 AM
Hello Hardik

Thanks for your reply!
Unfortunately, the link describes the use of some (not freeware) tools or the luck with the printer driver - which both is more for advanced users.

My idea was, that our users can just choose a scaling and export/print the reports in an other size than the original one - directly, without any tricks.

Best regards
0
Accepted
Nasko
Telerik team
answered on 17 Feb 2015, 02:53 PM
Hello Fridli,

Even if you change the Report.PageSettings programmatically and increase the page size, you will still need to change the report items' size and location which is not a trivial matter.

A feasible approach would be to export the report to PDF first and then configure the scaling from the PDF print dialog. You can even achieve this configuration programmatically setting the ViewerPrintScaling parameter of the PDF rendering extension. For more information on the topic, please check this thread.

Regards,
Nasko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Fridli Jacober
Top achievements
Rank 1
answered on 13 Apr 2015, 01:10 PM

Hello and thanks for your answer!

I already found this but it seemed to me that this isn't the solution I'm looking for. Don't know why exactly anymore. But i guess it was because when I choose a scaling in the print dialog, the content is scaled but the report's size is still the original or so.

Don't know exactly how to tell this but if for example I change scaling to 200%, the content is scaled but the page is still A4, so the content isn't printed on 4 pages but what exceeds the page size is lost (I never printed it but used the preview and page count in the print dialog).

Regards

Tags
General Discussions
Asked by
Fridli Jacober
Top achievements
Rank 1
Answers by
Hinata
Top achievements
Rank 1
Fridli Jacober
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or