Multiple reports in a single Reportviewer in Visual Studio 2010

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgarg005SSRS
    New Member
    • May 2010
    • 1

    #1

    Multiple reports in a single Reportviewer in Visual Studio 2010

    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(c reated 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(ReportD ataSet). 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?
Working...