Guys
I have a reportviewer control which is let to localreport based on what type of report user wants to generate. Datasource for both embedded report resource file (*.rdlc) takes different parameters and displays data accordingly. The reportviewer shows me report for first time bang on. But when I try to embed new report resource file it gives me run-time error "An attempt was made to set a report parameter...."
Here is my coding
private void btnByDate_Click(object sender, EventArgs e)
{
ReportDataSource reportDataSource1 = new ReportDataSource();
reportDataSource1.Name = "TimesheetDataSet1_sp_reportbydate";
reportDataSource1.Value = this.sp_reportbydateBindingSource;
this.reportViewer1.LocalReport.DataSources.Add(reportDataSource1);
Go to the complete details ...