具有组合框项目选择的绑定水晶报表 [英] binding crystal report with combobox items selection

查看:73
本文介绍了具有组合框项目选择的绑定水晶报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有crytstal报表查看器的Crystal报表.

我希望将数据填充到组合框上所选项目的水晶报表中.


提前谢谢.
欢迎所有建议.

解决方案

您可以为此使用选择公式.您可以在运行时将值发送到选择公式(我的意思是您可以将EmployeeID组合框值传递给选择公式).看看这个.

使用选择公式创建报告 [ ^ ]

SelectedIndex_Changed 事件中编写代码.根据您的组合框选择过滤数据,并填写数据表,然后将此数据表传递给您设计的Crystal报表.
也请检查一下,
http://csharp.net-informations.com/crystal-reports/csharp- crystal-reports-stepbystep.htm [ ^ ]


尝试此链接.这将告诉您如何使用数据集进行绑定.
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-without-database.htm [ ^ ]


I am using crystal report with crytstal report viewer .

I want my data filled to the crystal report on the items selected on combobox.


Thanks in advance.
All suggestions welcome.

解决方案

You can use Selection formula for that. you can send the value to the selection formula at run time(I mean you can pass the EmployeeID combobox value to selection formula). Have a look at this.

Creating a Report with a Selection Formula[^]


Write your code inside the SelectedIndex_Changed Event. Filter the datas based on your combobox selection and fill in datatable and pass this datatable to crystal report you have designed.
Check this also,
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-stepbystep.htm[^]


Try this link. This will tell you how to bind using dataset.
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-without-database.htm[^]


这篇关于具有组合框项目选择的绑定水晶报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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