For Visual Studio 2008/Visual Basic Developers.. At first, I’ve encountered problems regarding how to display an specific report from a collection in just 1 reportviewer.. I’ve searched over the forums and yet I’ve found the answer..
After creating reports, place a ReportViewer into a Form. Create a BindingSource then bind it’s DataSource to your DataSet(you need to create dataset first to create a report). Then select a DataMember(record from your DataSet). Then you might apply this code in Form_Load or in any Event of the Class..

Click image for more info..
Explanation to the code given above:
~ 1st line: Declare a New ReportDataSource..
~ 2nd line: Fill your DataAdapter(auto-generated when you create a BindingSource) with the record from your DataSet..
~ 3rd line: Set name for your ReportDataSource.. Now, ‘ds’ is the name of my DataSet, and ‘v_g_staff’ is for the record.. The format is usually <your DataSet name>_<name of record> ..so it became ‘ds_v_g_staff’..
~ 4th line: Set the value for your ReportDataSource.. The value will be the name of your BindingSource..
~ 5th line: Clear all the DataSources in your ReportViewer(incase they’re other sources binded to it..)
~ 6th line: Add the created ReportDataSource to the ReportViewer DataSource..
~ 7th line: Embed the created report in your ReportViewer.. Now, ‘CCI_App’ is the name of my Project.. The format usually is <name of your Project>.<Report name>.rdlc ..so it became ‘CCI_App.rptStaff.rdlc’
~ 8th line: Refresh the ReportViewer..
Note: Your ReportDataSource and your Report must be related or else.. hehe.. i know it’s quite obvious.. by the way, hope this post helps… thanks..
Posted in alvin chua, drupal, infinite, infinite-n-forever, junior developer
Tags: many reports in 1 reportviewer, Multiple Reports with 1 ReportViewer, reports, reports with 1 reportviewer, visual basic, vs 2008