title: Pass multiple values in crystal report
body: <p>I am trying to pass 2 values that are generated from C# passed to MS SQL stored procedure through Crystal reports </p>
  
  <p>so far i have this code </p>
  
  <pre><code>string username = Context.User.Identity.Name;
  string date = DateTime.Now.ToShortDateString() ;
  ReportDocument crystalReport = new ReportDocument();
  
  crystalReport.Load(Server.MapPath(@"..\admin\CrystalReport1.rpt"));
  crystalReport.SetParameterValue("@Username", username);
  crystalReport.SetParameterValue("@Date", date);
  
  crystalReport.SetDatabaseLogon("", "", @"dennislaptop-pc\SQLEXPRESS", "healthylifestyledb");
  CrystalReportViewer1.ReportSource = crystalReport;
  </code></pre>
  
  <p>the above code is in the crystal report generation page the problem is when i try to pass the @Date Value to the stored procedure. the stored procedure works well but i am getting this error in C#</p>
  
  <p>Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))</p>
  
  <p>any help how i can pass 2 parameter values ?</p>