Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX)) RRS feed

  • Question

  • User-673128616 posted

    I trying to pass crystal report query string following way. It raise this error

    Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))

     public ActionResult Report(Guid   AccountCallId)
                ReportClass rptH = new ReportClass();
                rptH.FileName = Server.MapPath("~\\Reports\\MerchandiserReport.rpt");
                rptH.SetParameterValue("@AccountCallId", AccountCallId);
                Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
                return File(stream, "application/pdf"); 

    Sunday, April 15, 2012 3:03 PM

All replies

  • User-1556678718 posted

    I have the same problem. any solutions?

    Thursday, May 17, 2012 7:51 AM
  • User-673128616 posted

    I done this way

    rptH.SetParameterValue(1, AccountCallId);
    Thursday, May 17, 2012 12:10 PM