hi,
I have a crystal report that is based on Stored Procedure. in the beginnig the report was called from Enterprise infosotre and runs fine. now, I modified my SP and my report to except parameters but I don't know how to change that in the code. below is my code when calling the report without parameters:

VB Code:
  1. Try
  2.                 If TypeOf Session.Item("CESession") Is Object Then
  3.                 ceSession = Session.Item("CESession")
  4.                 strReportName = "StudyReport"
  5.                 ceEnterpriseService = ceSession.GetService("", "InfoStore")
  6.                 ceInfoStore = New InfoStore(ceEnterpriseService)
  7.  
  8.                 sQuery = "Select iD, NAME, SI_NAIL From OBJECTS Where SI_NAME = " & "'" & strReportName & "'"
  9.  
  10.                 ceReports = ceInfoStore.Query(sQuery)
  11.  
  12.                 If ceReports.ResultCount() <> 1 Then
  13.                     Throw New Exception("The " & "'" & strReportName & "'" & " report cannot be found on the Crystal Enterprise Server")
  14.                 End If
  15.  
  16.                 ceReport = ceReports(1)
  17.                 CRViewer.EnterpriseLogon = ceSession
  18.                 CRViewer.ReportSource = ceReport
  19.                 CRViewer.DisplayGroupTree = False
  20.                 CRViewer.DisplayToolbar = False
  21.  
  22.             Else
  23.                 CRViewer.Visible = False
  24.                 Throw New Exception("no Enterprise session available")
  25.  
  26.             End If
  27.  
  28.         Catch ex As Exception
  29.             sMessage = ex.Message
  30.             Response.Write(sMessage)
  31.         End Try


my SP expects 4 parameters ProjID,StudyName,SubStudy,Eval
where and how can I set my parameters and pass it to the report?

thanks