HY! I have a form application in visual studio 2010 and I want to create a report with report viewer and to add some parameters. I tried to add parameters from code but it didn`
Try this:
ReportParameter PrmInvoiceNo = new ReportParameter("PrmInvoiceNo"); PrmInvoiceNo.Values.Add(this.InvNo.ToString()); this.reportViewer1.LocalReport.SetParameters(PrmInvoiceNo);