[英]Pasing paramter values from a formula in Crystal Report
I have created an automated report system, that uses a formula to run a crystal report file. 我创建了一个自动报告系统,该系统使用公式来运行水晶报告文件。
When the report file has a SQL view linked to it, the formula sent is just the criteria that the report should show Ie "{PAY_TRANS_REPORT_DATA_VIEW.PAYDT} IN #startDT# to #endDT#" 当报告文件具有链接的SQL视图时,发送的公式仅是报告应显示的条件,即“ {PAY_TRANS_REPORT_DATA_VIEW.PAYDT}在#startDT#至#endDT#中”
However, I have some reports that use stored procedures which have parameters required. 但是,我有一些使用存储过程的报告,这些存储过程具有必需的参数。 My question, is how do I send these parameter values to the report?
我的问题是,如何将这些参数值发送到报告中?
Thanks. 谢谢。
Let the name of the report you want to pass a parameter is Report1
then you can pass your parameter, parameter1
, to your report with the following way: 假设要传递参数的报告的名称为
Report1
则可以通过以下方式将参数parameter1
传递给报告:
ReportClass.SetParameterValue("parameter1",parameter1);
The ReportClass
is the class that's associated with the Report1
. ReportClass
是与Report1
关联的Report1
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.