Here's a real simple way to pass parameters. The code is on the crviewer form.
Dim strLocID As String = CType(Session.Item("strLocID"), String)
strLocID = Session.Item("strLocID")
Dim strCustID As String = CType(Session.Item("strCustID"), String)
strCustID = Session.Item("strCustID")
Dim strOrderID As String = CType(Session.Item("strOrderID"), String)
strOrderID = Session.Item("strOrderID")
txtLocID.Text = strLocID
txtCustID.Text = strCustID
txtOrderID.Text = strOrderID
crViewer1.Visible = True
crReport = New CrystalReport1
'crViewer1.Width = "750px"
crViewer1.Zoom(100)
crReport.SetParameterValue("LocID", txtLocID.Text)
crReport.SetParameterValue("CustID", txtCustID.Text)
crReport.SetParameterValue("OrderID", txtOrderID.Text)
crViewer1.ReportSource = crReport
crViewer1.ShowFirstPage()
crViewer1.Visible = True
ExportData(crReport)
crReport.Dispose()
crReport.Close()
In this example I am passing 3 parameters to the report.
Good Luck
Cathy