Solved

Dynamically Assign List<Of whatever> as ReportViewer DataSource

Posted on 2011-09-21
5
369 Views
Last Modified: 2012-05-12
I am creating .RDLC code via the RDLObjectModel - and I want to define a List<Of whatever> business object as the report's DataSource.

Can anyone please point me in the right direction on this?

Many thanks in advance.
0
Comment
Question by:CeliaOblinger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 36580578
I don't understand your question.  Are you saying that you are generating the .rdlc XML in code?
0
 

Author Comment

by:CeliaOblinger
ID: 36581138
Yes, I am programming against Microsoft.ReportingServices.RDLObjectModel - and the XML .RDLC code is created serialized to a physical temp file.

Then, this programmatically generated assigned as the .RDLC file for the ReportViewer.

What I don't know how to do, with RDLObjectModel is specify the DataSource as an object of type List<Of whatever>.

Hope you can help - thannjks!
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 250 total points
ID: 36581188
The binding for a report is done with the ReportDataSource.  You can use a BindingSource, or BindingList<T> to bind the list to the ReportDataSource.
0
 
LVL 101

Expert Comment

by:mlmcc
ID: 36998450
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Written by Valentino Vranken. A while ago I wrote an article called Chart Optimization Tips (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Chart-Optimization-Tips.html).  This article explained how …
Written by Valentino Vranken. Introduction: In a previous article (http://www.experts-exchange.com/articles/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Reporting-On-Data-From-Stored-Procedures-part-1.html) I announced that I would writ…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question