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

Programmatic generation of reports

2 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anil K
Top achievements
Rank 1
Anil K asked on 18 Sep 2009, 09:57 PM
I have seen a code snippet in the tutorials but that doesn't really help in creating reports at run time.

I have a dataset which is being generated at run time.  The program does not know what data is going to be in the dataset at design time. However we need to generate reports during run time based on the data in the dataset. Obvoisly, I cannot design the report before hand and so need to design the report in the code. I have researched a little bit but doesn't seem to get the full code sample that can get this done.

Any leads to this end would be much appreciated. What I am looking for is a full sample webpage code for generating a report from a dataset.

2 Answers, 1 is accepted

Sort by
0
Hrisi
Telerik team
answered on 22 Sep 2009, 02:42 PM
Hi Anil K,

There is no hidden code for you to search for. If you use the designer to create the report -  all code is placed in the InitializeComponent() method. Š¢herefore the best way to learn how to generate the report is by looking at the auto-generated code. You should play with the Designer and see what code is generated in the code-behind. Also do not miss the "API Reference" section of our Help.

Regards,
Hrisi
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.
0
Anil K
Top achievements
Rank 1
answered on 15 Oct 2009, 05:17 PM
I have seen the code in the InitializeComponent() for a report. But doesn't help how to proceed further. There is a .resx file too. When you create a dynamic report how you handle this file. Can you help get a very simple end to end code sample / project that shows a dynamic report being created completely programmatically. You have some info in this link http://www.telerik.com/help/reporting/programmatic-control-of-reports.html but that gives bits and pieces of info. a complete working sample / project would be greatly helpful.
Tags
General Discussions
Asked by
Anil K
Top achievements
Rank 1
Answers by
Hrisi
Telerik team
Anil K
Top achievements
Rank 1
Share this question
or