缺少参数值? [英] Missing Parameter Values?
问题描述
我是Crystal Reports的新手,我很难搞清楚什么是错误的。我有一个包含子报表的报表,这两个报表都是以编程方式加载的。我在代码中设置主报表的所有参数。当我尝试运行它虽然我收到错误说错过参数值
Hi, I'm fairly new to Crystal Reports and am having trouble figuring out whats going wrong. I have a report with a subreport, both of which are being loaded programmatically. I am setting all the parameters for the main report in code. When I try to run it though I get an error saying Missing Parameter Values
rpt.SetDataSource(dsOcc)
rpt.SetDataSource(dsOcc)
rpt.SetParameterValue( " kiPerformance" ,rptKi)
rpt.SetParameterValue("kiPerformance", rptKi)
rpt.SetParameterValue( " kiPerformanceGoal" ,rptKiGoal)
rpt.SetParameterValue("kiPerformanceGoal", rptKiGoal)
rpt.SetParameterValue( " kiDirectivesGoal" ,rptKiNextGoal)
rpt.SetParameterValue("kiDirectivesGoal", rptKiNextGoal)
rpt.SetParameterValue( " kiPerformanceForecast" ,rptKiForecast)
rpt.SetParameterValue("kiPerformanceForecast", rptKiForecast)
rpt.SetParameterValue( " Supplier" ,rptSupplierName)
rpt.SetParameterValue("Supplier", rptSupplierName)
rpt.SetParameterValue( " PreparedBy" , " Eric" )
rpt.SetParameterValue("PreparedBy", "Eric")
rpt.Subreports( " FailureOccurence" )。SetDataSource(dsOcc.Tables( " FAIL_OCC" ))
rpt.Subreports("FailureOccurence").SetDataSource(dsOcc.Tables("FAIL_OCC"))
crv.ReportSource = rpt
crv.ReportSource = rpt
我做错了什么?谢谢。
Eric Seidel
Eric Seidel
推荐答案
我遇到了同样的问题。
你找到了解决办法吗?
Did you find any solution?
提前致谢。
Daniele
这篇关于缺少参数值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!