本文介绍了晶体报告的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Windows应用程序水晶报告中,我想通过选择医生姓名和两个日期开始和结束日期从数据库中检索数据。在 form1 中拖放 CrystalReportViewer 以查看报告, comboBox(cmbDoctorName )和两个 datetimePickers(startDate和endDate) ) button1 控件。每当用户希望查看报告时,首先他将从 cmbDoctorName startDate和endDate 中选择医生姓名,然后点击 button1 ,应该通过单击 button1 显示报告,而不显示丑陋的参数对话框。



注意:我使用 VS2005 C#2.0 和 SQL Server 2005

In my windows application crystal report, i want to retrieve data from database by selecting a Doctor Name and two dates Start and End Dates. In form1 where I dragged and dropped a CrystalReportViewer to view the report, a comboBox(cmbDoctorName) and two datetimePickers(startDate and endDate) and a button1 control. Whenever the user wishes to view report, first he will select Doctor Name from cmbDoctorName and startDate and endDate then click button1, the report should be shown by clicking button1 without appearing the ugly parameters dialog.

Note: I developed this windows application by using VS2005 C#2.0 and SQL Server 2005.

推荐答案


这篇关于晶体报告的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 02:02