Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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.
Posted
Updated 21-Sep-13 19:27pm
v9

1 solution

 
Share this answer
 
Comments
Maciej Los 12-Sep-13 8:01am    
Good collection of links!
Md M Ahmad 13-Sep-13 13:44pm    
Good links but not related to my query. I unable to solve my problem by using these links. Please provide me same solution related to my query.
Maciej Los 13-Sep-13 17:18pm    
Not related? Related! As well!
Md M Ahmad 14-Sep-13 0:15am    
Not at all................Please read my query carefully.
It's about passing two parameters viz; "string and datetime" simultaneously in a crystal report with C#.
thatraja 7-Oct-13 14:26pm    
I did read your question carefully. MY solution is enough for you. All you have to do is just customize the code. Still you have issue, let me know. Oops, delayed reply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900