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

Report from generic list?

1 Answer 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lars
Top achievements
Rank 1
Lars asked on 02 Dec 2012, 05:12 PM
Before calling my report, I generate a generic list of business objects. The processing is quite complex and I do not want to try to use Telerik's parameter facility to do this. 

How can I pass this List<BusinessObject> to Telerik Reporting at runtime? What do I use as a datasource in order to design the report?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 05 Dec 2012, 04:54 PM
Hi Lars,

For backwards compatibility reasons Telerik Reporting supports binding directly to IEnumberable/IListSource objects (incl. arrays, collections, DataSet, DataTable, DataView, DbDataAdapter), so you can bind directly to your List. However instead you might consider using the ObjectDataSource that can handle this types of data sources.

As for the design time support, check out the following help article: Working With Data at Design Time.

All the best,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Lars
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or