如何将单个值从winform传递给crystal报表 [英] how to a pass a single value from winform to crystal reports
本文介绍了如何将单个值从winform传递给crystal报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我在这里遇到一个问题,我在这里做一个select语句并获得一个值。然后我想传递这个值并在报告页脚部分打印出来。我在水晶报告中声明了一个文本框,如何将这个特定的文本框传递给该文本框。
I have a problem here where I do a select statement and will get a single value. Then later I want to pass this value and to be printed out in the report footer section. I have declared a text box in the crystal report and how can I pass to that text box this particular particular.
推荐答案
您想要在报告中添加参数字段。然后,您可以将其放在报表页脚中。然后在代码中,您可以通过执行此操作来设置参数字段。
myReport.SetParameterValue(" myParameterName"," ValueI'mPassing"); // myReport是一个ReportDocument对象
You want to add a parameter field to the report. You can then place it in the report footer. Then in code you can set the parameter field by doing this.
myReport.SetParameterValue("myParameterName", "ValueI'mPassing"); //myReport is a ReportDocument object
这篇关于如何将单个值从winform传递给crystal报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文