PDA

View Full Version : خطا در هنگام گزارش گیری



r_mehrizi
چهارشنبه 19 آبان 1389, 14:28 عصر
چند تا گزارش ساختم که همگی به خوبی اجرا میشه اما یکی ازگزارشها خطای زیر را میده خواهشا راهنمایی کنید خیلی ضروری هستش

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

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))

Source Error:

Line 92: //rep.SetParameterValue("Tarikh", GetPersianDate());
Line 93: rep.PrintOptions.PrinterName = "";
Line 94: rep.SetParameterValue("Title", Session["strTitle"]);
Line 95:
Line 96: // rep.ReportDefinition.Sections(1).ReportObjects("b_Logo") = pictures.Rows(0).Item(0) '.Top = rep.ReportDefinition.Sections(2).ReportObjects("Text11").Top
Source File: c:\Inetpub\wwwroot\Amval\pages\show_report.aspx.cs Line: 94

Stack Trace:

[COMException (0x8002000b): Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))]
CrystalDecisions.ReportAppServer.DataDefModel.Fiel dsClass.get_Item(Int32 Index) +0
CrystalDecisions.CrystalReports.Engine.ParameterFi eldDefinitions.get_Item(Int32 index) +44
CrystalDecisions.CrystalReports.Engine.ParameterFi eldDefinitions.get_Item(String fieldName) +60
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.SetParameterValue(String name, Object val) +184
pages_show_report.Report_Bind() in c:\Inetpub\wwwroot\Amval\pages\show_report.aspx.cs :94
pages_show_report.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\Amval\pages\show_report.aspx.cs :38
System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627