Solved

Dynamically Assign List<Of whatever> as ReportViewer DataSource

Posted on 2011-09-21
5
361 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
  • 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

This code started out as a fix for a customer that had incoming data that was hunderds of numbers and words long that was to fit in one column. The problem was that the customer did not want to split words or numbers when wrapping in the column. …
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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