索引错误超出了数组的范围。 [英] Error of Index was outside the bounds of the array.

查看:152
本文介绍了索引错误超出了数组的范围。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好朋友我收到错误索引超出了数组的范围。

以下代码以粗体plesae需要帮助来解决错误:





hello friends i am getting an error for "Index was outside the bounds of the array."
for the following code which is in bold plesae needed help to resolve the error:


cryRpt.Load("C:\sachin\AutoCrystal1\AutoCrystal1\Daily MIS 28-02-13.rpt")
       cryRpt.SetDatabaseLogon("sa", "admin-123", "testvm", "sgujdt")
       cryRpt.SetParameterValue("@date", Date.Now)
       cryRpt.SetParameterValue("@fromdate", date2, "Sub Cumulative MIS")
       cryRpt.SetParameterValue("@date", date3, "Sub Cumulative MIS")
       cryRpt.SetParameterValue("@fromdate", date4, "Diff_mis")

推荐答案

看看这里:以编程方式将参数传递给子报告 [ ^ ]

和此处: Crystal Reports:以编程方式在子报表中设置参数值 [ ^ ]

我希望它有所帮助;)
Have a look here: Passing Parameters to a Sub Report Programatically[^]
and here: Crystal Reports: Programmatically setting parameter values in a subreport[^]
I hope it helps ;)


这篇关于索引错误超出了数组的范围。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆