Last post May 17, 2012 12:10 PM by gslakmal
Member
30 Points
442 Posts
Apr 15, 2012 03:03 PM|gslakmal|LINK
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.Load(); rptH.SetDataSource(GetHouseRentals()); rptH.SetParameterValue("@AccountCallId", AccountCallId); Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); return File(stream, "application/pdf"); }
213 Points
412 Posts
May 17, 2012 07:51 AM|RioDD|LINK
I have the same problem. any solutions?
May 17, 2012 12:10 PM|gslakmal|LINK
I done this way
rptH.SetParameterValue(1, AccountCallId);
Member
30 Points
442 Posts
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
Apr 15, 2012 03:03 PM|gslakmal|LINK
I trying to pass crystal report query string following way. It raise this error
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
Member
213 Points
412 Posts
Re: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
May 17, 2012 07:51 AM|RioDD|LINK
I have the same problem. any solutions?
Can someone please post an answer without posting a link to a link to a link?
Member
30 Points
442 Posts
Re: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
May 17, 2012 12:10 PM|gslakmal|LINK
I done this way