Solved

Dynamically Assign List<Of whatever> as ReportViewer DataSource

Posted on 2011-09-21
5
367 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 100

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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 …
Have you ever had to extract data from a Microsoft SQL Server database and export it to an Excel file, but did not want to use a DTS package? The concept in this article is not new, but it is the answer and will also work on 64-bit SQL boxes.   …

726 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