I have one reportviewer called reportviewer1 and two reports (report1.rdlc,report2.rdlc) i want to display them into the reportviwer1 by choosing one of them in combo box by using the code i tried the following code
reportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet1"));
reportViewer1.LocalReport.ReportEmbeddedResource = "university_project.Report1.rdlc";
reportViewer1.LocalReport.Refresh();
but it didn't work what is the correct format of the code?is there a missing parameters in the ReportDataSource?