Hi, am trying to generate custom on the fly report with landscape or portrait orientation (user selection during runtime). The fields should auto adjust to the page size accordingly. Any idea how to accomplish this?
Here's what I did without much success-
1. create a report with custom size (i.e. width 8.5 and length 11, default is portrait)
2. create panels for header and details. dock the fields to left or right of the panels. am assuming the fields should stick to the edges of panel if page resized
3. in code ... I did the following to change the orientation to landscape (didnt work)
Thanks.
Here's what I did without much success-
1. create a report with custom size (i.e. width 8.5 and length 11, default is portrait)
2. create panels for header and details. dock the fields to left or right of the panels. am assuming the fields should stick to the edges of panel if page resized
3. in code ... I did the following to change the orientation to landscape (didnt work)
.PageSettings.Landscape =
True
.PageSettings.PaperSize =
New
Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Inch(11.0R), Telerik.Reporting.Drawing.Unit.Inch(8.5R))
.Panel1.Width =
New
Telerik.Reporting.Drawing.Unit(10, Telerik.Reporting.Drawing.UnitType.Inch)
.Panel2.Width =
New
Telerik.Reporting.Drawing.Unit(7, Telerik.Reporting.Drawing.UnitType.Inch)
.Width = Telerik.Reporting.Drawing.Unit.Inch(11.0R)
Thanks.