Dim parms As ReportParameter() = New ReportParameter(n - 1) {}
parms(0) = New ReportParameter("param_name", textbox(n - 1).text)
parms(1) = New ReportParameter("param_course", textbox(n).text)
Me.reportViewer1.LocalReport.SetParameters(parms)
Me.reportViewer1.RefreshReport()
Next time go to google and search "code converter". Though code converters are not always perfect but they do the job.