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

How to create an entire report programatically

1 Answer 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 18 Dec 2008, 07:14 PM

Hello,

I have a dataset with two datables and a relationship between them. I need to be able to generate reports entirely programatically because our reporting structure is purely dynamic and a user can choose columns, grouping, sorting etc at runtime.

Can you please provide me with code that will create a heirarchy report entirely programatically and for each detail record in Datable 1, have a sub report with records from datatable 2.

Can you also show me in the code how to add a column as the Grouping column.

 

Can you also show me how to style the report

 

Thanks,

Andy

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 19 Dec 2008, 12:44 PM
Hi Andrew,

As your question is too general, it would be best if you review the following resources:
  • http://www.telerik.com/help/reporting/programmaticcontrolofreports.html
  • http://www.telerik.com/community/forums/thread/b311D-bbdeag.aspx
  • http://www.telerik.com/help/reporting/designingreportscreatinggroupinglevels.html
An easy way to see a code you're not sure about is to do it through the report designer first. Then go into the InitializeComponent() method and see what code has been generated.

Greetings,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or