I have a crystal report that contains several subreports. The subreports are called from two parameters that are passed to the main report. Each subreport is linked to the main report's parameter values. I'm using the following code to load the report but I receive the "Missing Parameter Values" error.

Code:
      Dim crReportDocument As New ReportDocument
             
		Dim param1 As String = (Request.QueryString("Value1"))
		Dim param2 As String = (Request.QueryString("Value2"))
		crReportDocument.Load("C:\...") ' report location
		crReportDocument.SetDatabaseLogon("username", "password")
		crReportDocument.SetParameterValue(0, param1 )
		crReportDocument.SetParameterValue(1, param2)
		CrystalReportViewer1.ReportSource = crReportDocument
		CrystalReportViewer1.DataBind()
Are the parameters being passed correctly? is there another way to pass the parameters to the subreports?