将文本框数据发送到水晶报表 [英] Send Textbox data to crystal report

查看:100
本文介绍了将文本框数据发送到水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i我正在研究vb.net的学校管理系统项目,



i完成95%的项目现在我想要打印报告,我想打印颗粒日期持续时间的数据



我希望在报告的标题中打印日期,



但是从vb表格的文本框中取日期所以我怎么能这样做????



请帮忙解决这个问题......



i am working on School management system Project in vb.net,

i completed 95% of my project & now i want to print report, i want to print data from particulate date duration

and i want to print date in heading of the report,

but the date fetch from the text boxes of vb form so how can i do this????

Please help to solve this...

推荐答案

textbox-value-at-run-time [ ^ ]



display-textbox-values-in-the-crystal-reports [ ^ ]



想要在水晶报表中打印文本框数据。 [ ^ ]



检查链接..希望你会得到答案..
textbox-value-at-run-time[^]

display-textbox-values-in-the-crystal-reports[^]

want to print textbox data in crystal reports.[^]

Check the links..hope you will get your answer..


关注步骤

1.通过rt在Crystal Report中创建一个参数。点击Report然后选择Field Explorer,

Now rt。单击参数字段并创建一个新参数,为其命名为'DateToShowinHeader'。

2.拖动(在报表标题部分)新参数通过展开参数字段创建'DateToShowinHeader'。

3现在在VB.net中编写代码

CrystReport rept = new CrystReport();

rept.SetDataSource(datasetObject);

rept.VerifyDataBase();

rept.setParameterValue(DataToShowinHeader,txtDate.text);







希望对你有帮助.....
Follow the Steps
1. create a parameter in Crystal Report by rt. Click on the Report then select Field Explorer,
Now rt. click Parameter Fields and create a new parameter , Give it a name 'DateToShowinHeader'.
2. Drag(on your report header part) the new Parameter created 'DateToShowinHeader' by expanding Parameter Fields.
3 now write the code in VB.net
CrystReport rept = new CrystReport();
rept.SetDataSource(datasetObject);
rept.VerifyDataBase();
rept.setParameterValue("DataToShowinHeader",txtDate.text);



Hope it help you.....


这篇关于将文本框数据发送到水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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