Welcome to the world of ASP.NET reporting! SSRS has a little learning curve, but as soon as you get it, I'm sure you'll enjoy working with it.
I recommend that you first create a report, including your parameters.
Then you can set the parameter values ββin the code like this:
Private Sub SetReportParameters(ByVal viewer As ReportViewer) ''# use parameters to pass info to report Dim myStartDate As New ReportParameter("StartDate", Request.QueryString("startDt")) Dim myEndDate As New ReportParameter("EndDate", Request.QueryString("endDt")) Dim myRegion As New ReportParameter("Region", region) Try ''# add parameters to the report viewer.LocalReport.SetParameters( _ New ReportParameter() {myStartDate, myEndDate, myRegion}) Catch ex As Exception ErrorLabel.Text = DATABASE_ERROR_MSG End Try End Sub
Dubs source share