Solved

Dynamically Assign List<Of whatever> as ReportViewer DataSource

Posted on 2011-09-21
5
350 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
Comment Utility
I don't understand your question.  Are you saying that you are generating the .rdlc XML in code?
0
 

Author Comment

by:CeliaOblinger
Comment Utility
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
Comment Utility
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
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction As you'll probably know, a data region in a SQL Server Reporting Services report can be linked to only one dataset.  This makes it troublesome when you need to display data from more than one dataset in the same data region.  SQL Serve…
Time Corrections for Reports Working with a report, we made some interesting discoveries about the time corrections/updates We are using the following Parameters: Starting Entered Date (Date) formatted as Data type: "Date/Time" Ending Entered …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now