title: Crystal Report Parameters in Sessions are lost
body: <p>I can't display my Crystal Report using parameters in Sessions. Here is my code:</p>
  
  <pre><code>    Sub ShowRept()
      Dim cryInv As New CrystalDecisions.CrystalReports.Engine.ReportDocument
      cryInv.Load(Server.MapPath("~/CrystalReports/SupplierSalesReport.rpt"), CrystalDecisions.Shared.OpenReportMethod.OpenReportByTempCopy)
  
  cryInv.SetParameterValue("@SupplierID", Session("SupplierID"))
  cryInv.SetParameterValue("@StartDate", Session("StartDate"))
  cryInv.SetParameterValue("@EndDate", Session("EndDate"))
  
  CrystalReportViewer.ReportSource = cryInv
  ' CrystalReportViewer.RefreshReport()
  End Sub
  </code></pre>
  
  <p>If I hard code the parameter like this:</p>
  
  <pre><code> cryInv.SetParameterValue("@SupplierID", 25)
   cryInv.SetParameterValue("@StartDate", "25/10/2017")
   cryInv.SetParameterValue("@EndDate", "25/12/2017")`
  </code></pre>
  
  <p>then the report shows properly.</p>
  
  <p>How to solve the problem?</p>
  
  <p>Regards,</p>