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

Option to select Page Size

4 Answers 631 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Karen
Top achievements
Rank 1
Karen asked on 26 Jun 2013, 01:25 PM
Is there a way that I can set up an option to allow users to select the Page Size in the Report Viewer? I have reports with Page Setting set to A4, but users would ideally like to be able to select between A4 and Letter size.

4 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 01 Jul 2013, 01:19 PM
Hello Karen,

You can use bindings to the report's PageSettings properties. The bindings can use user-defined functions as expression to transform user selection via report parameters into valid PageSetting properties values.

For example create report parameter visible to the end-user which will be the PaperSize, then use that parameter as an argument for a custom function converting the input to Telerik.Reporting.Drawing.SizeU. Use the function in a binding to the report's PageSettings.PaperSize property.

Regards,
Stef
Telerik

Have you tried the new visualization options in Telerik Reporting Q1 2013? You can get them from your account.

0
Karen
Top achievements
Rank 1
answered on 01 Jul 2013, 10:04 PM
Thanks. Can I add this as a custom option on the toolbar in Report Viewer? e.g allow the user to select the page size from a combo box. If so how can I do it?
0
Accepted
Peter
Telerik team
answered on 04 Jul 2013, 01:19 PM
Hello Karen,

The easiest way is to set up a report parameter that you can directly use in the binding expression. You may find useful the How to setup a report parameter with predefined static values KB article.

Regards,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

0
Karen
Top achievements
Rank 1
answered on 10 Jul 2013, 09:11 AM
Thank You, very helpful!
Tags
General Discussions
Asked by
Karen
Top achievements
Rank 1
Answers by
Stef
Telerik team
Karen
Top achievements
Rank 1
Peter
Telerik team
Share this question
or