Skip to content
Loading
  • Amit Gupta
    0
    You haven't describe the full exception details. Anyway, have a look to the below video that will make you understand the use of Reports wth parameters
     
    https://www.youtube.com/watch?v=WGKzFKgeoo8
     
    Good Luck !! 
    0
  • Suraj Kumar
    0
    You have passed more parameters than the defined in the reportviewer at the design time. As I can see in your screen shot only one parameter you have defined but you are passing 3 parameters in code behind.
     
     
    0
  • Jignesh Kumar
    0
    Hi Umut,
     
    You can pass parameter like,
     
    1. ReportDocument reportdocument = new ReportDocument();  
    2. reportdocument.Load(Server.MapPath("CrystalReport.rpt"));  

    3. reportdocument.SetParameterValue("Sum", "195");
    4. reportdocument.SetParameterValue("discount", "19"); 
    5. reportdocument.SetParameterValue("total", "176");   
    6. CrystalReportViewer1.ReportSource = reportdocument;  
     
    0