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

Build report programmatic

1 Answer 56 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
rtk
Top achievements
Rank 1
rtk asked on 03 Nov 2009, 10:07 AM
Hey

Is there any good example for building report dynamic. I can't find very much information about this. Only ifnormation i found was this: http://www.telerik.com/help/reporting/programmatic-control-of-reports.html

My problem is that the report would change depending on the data.

Here are some of mye problem:
- Add controls dynamic. I know i can add controls in design mode and look at the "code behind". But it looks like i need to place control with a absolute position. I need to use sections. I tried to use panels, but this is useless if i need to give the panel a absolute position, because the content length of every panel will be different.
- How can i control page break? I would like every new section to start on a new page.

Thanks

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 05 Nov 2009, 04:21 PM
Hi brajoh,

Up to your questions:

  • Every report items should have Location and Size set - this is mandatory. The TextBox item has CanGrow/CanShrink property so it can grow whenever necessary. The Panel item on the other side is a container item and grows according to its children, so clearly this should not be a problem. However there is no easy way to create dynamic layout, so you might consider creating different reports for different layouts.
  • Though the PageBreak property of each section ..

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
rtk
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or