Hi,
I am using C# Reportviewer
I have a problem passing more than one parameter from my form textbox to report textbox.
When i only passed one meter like this it worked perfectly
this.reportViewer1.LocalReport.ReportPath = "Report2.rdlc";
ReportParameter rp = new ReportParameter("InvoiceNumber", this.textBox2.Text);
this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] {rp});
this.reportViewer1.RefreshReport();
But now as soon as i try passing a second parameter like this it only shows Invoice number in my report and not Balance brought forward parameter
this.reportViewer1.LocalReport.ReportPath = "Report2.rdlc";
ReportParameter rp = new ReportParameter("InvoiceNumber", this.textBox2.Text);
ReportParameter rpt = new ReportParameter("BalanceBroughtForward", this.textBox5.Text);
this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] {rp});
this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] {rpt});
this.reportViewer1.RefreshReport();
Is my code maybe wrong for passing 2 parameter.
Can someone please assist me in this matter
Thanks in advance