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

Programmatically Change Report PageSize

1 Answer 168 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mike Bell
Top achievements
Rank 1
Mike Bell asked on 20 Apr 2010, 11:23 PM
Is it possible to change a reports PageSize at Runtime?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Apr 2010, 02:30 PM
Hi Mike Bell,

To change the PageSize property first you have to set the PaperKind property to Custom as shown in the code snippet:

PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Custom;
PageSettings.PaperSize = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(12), Telerik.Reporting.Drawing.Unit.Cm(15));


Kind regards,
Peter
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Mike Bell
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or