By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,087 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,087 IT Pros & Developers. It's quick & easy.

Multiple reports in a single Reportviewer in Visual Studio 2010

P: 1
My requirement is to create multiple reports (.rdlc) and show them using single report viewer control.
A: User selects a report from drop down list.
B: Depending on report name a report has to be displayed in the report viewer.

I have handled same scenario in VS2008 as follows:
Step1) Created a Dataset
Step2) Created multiple TableAdapters in the DataSet (one for each report)
Step3) Selected Report-> DataSources. I get the DataSet created in step 1 with all the TableAdapters(created in Step2) listed. I chose the appropriate TableAdapter and bind it with the report.


But in VS2010 I am not able to do the same;I created a DataSet named ReportDataSet with TableAdapters and two reports. Then, I took following two approaches to do it but in vain:

Approach A) In Report1 I drop a Table to report designer and the DataSet Properties window pop up. But I am not able to see the DataSet I created for the reports(ReportDataSet). If I click on "New" then it creates a new Dataset itself which I dont want.

Approach B) In Report1 opened "View -> ReportData" and clicked on "New" it also opens up the same pop up (Dtaaset Propertied) without the Dataset (ReportDataSet).


Can someone help me in achieving it in VS2010?
May 31 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.