Thanks for taking the time to read over my scenario. I am using one ReportViewer with already established SQL Stored Procedures connected to three report files (*.rdlc). There are three radio buttons which are to be associated with each report that needs to be displayed in the ReportViewer. Here is an example if a radio button is selected:ReportViewer1.Reset()
Dim rds As Microsoft.Reporting.WebForms.ReportDataSource
rds = New Microsoft.Reporting.WebForms.ReportDataSource
If RadioButtonList1.SelectedIndex = 0 Then
rds.DataSourceId = ObjectDataSource1.ID
rds.Name = "spEx1"
rds.Value = ObjectDataSource1
ReportViewer1.LocalReport.ReportPath = "Ex1Report.rdlc"
The ReportViewer works for the first radio button selection but then for the other selection I get the following error:
A data source instance has not been supplied for the data source 'spEx1'
I'm not sure exactly what is going on or where it's still tied to the first data source. Any help would be great! Thank you.
View Complete Post