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

Same report multiple times inside one report

3 Answers 197 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 04 Feb 2013, 11:07 PM

Right now I have a working report with the data source set to a user object. However I would like to show this report multiple times inside one report with the datasource set to a dynamic collection of user objects.  What would be the best solution for this?

Thanks
Chris

3 Answers, 1 is accepted

Sort by
0
Steven
Top achievements
Rank 1
answered on 05 Feb 2013, 04:05 AM
You could just append your user item(s) into an Array or List and then assign that Collection as the DataSource to the ReportItem.

this.Report.DataSource = Enumerable.Repeat(myObject, 10).ToList();
0
Vivek
Top achievements
Rank 1
answered on 14 Mar 2013, 12:13 PM
Hi,

This is what i was looking for :-)

What should we do to add the next list in a new page.
0
Hrisi
Telerik team
answered on 19 Mar 2013, 01:37 PM
Hi All,

Can someone explain in more details what exactly are the expectations from Telerik Reporting?

The report can be bound to any enumerable as Steven has already shown. Nevertheless we recommend to use ObjectDataSource instead of directly bind to the DataSource property as shown in "How to: Bind to a BusinessObject". Additionally any number of SubReport items can be used to nest reports. SubReport item usage is demonstrated in our Invoice report example.

All the best,
Hrisi
the Telerik team

Telerik Reporting Q1 2013 available for download with impressive new visualizations. Download today from your account.

Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Steven
Top achievements
Rank 1
Vivek
Top achievements
Rank 1
Hrisi
Telerik team
Share this question
or