locked
"Missing parameter values." How to fix? RRS feed

  • Question

  • User564488466 posted

    I have a very simple report that uses a stored proc to pull data but requires a timeid to be passed. 
    Below is the code i have in page load event (i also tried on button event same thing), when i load the page i get

    "Missing parameter values."  what am i doing wrong?


     ReportDocument ReportDoc = new ReportDocument();
     ReportDoc.Load(this.Server.MapPath("CR2.rpt"));
     ReportDoc.SetDatabaseLogon("****", "****");
     ReportDoc.SetParameterValue("timeID", "201204");
     Session["Report"] = ReportDoc;
     CrystalReportViewer1.ReportSource = ReportDoc;
     CrystalReportViewer1.RefreshReport();



    If i set EnableParameterPrompt to true it will ask me for the time id and once i enter it i can see  the repot fine, i just dont understand it.



    Thursday, May 31, 2012 11:09 AM

All replies

  • User346103577 posted

    try by setting

    EnableParameterPrompt to false

    Friday, June 1, 2012 6:06 AM