Click here to Skip to main content
15,937,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Updated 13-Dec-10 22:29pm
thatraja 14-Dec-10 4:26am    
explain your question more...if possible show your code here
Dalek Dave 14-Dec-10 4:29am    
Edited for Grammar and Readability.
Abdul Quader Mamun 15-Dec-10 5:36am    
What is your question?
rockume 15-Dec-10 6:22am    
hi. mr. thatraja .
i have taken a crystal report and a crystal report viewer
and a combobox .
what i want to do is when i select the employee id from the combobox
i get details only related that employee id and shown in report viewer.
while in page load i want to show the whole data in the crystal report or it should be blank.

waiting for the solution..
thanks in advance..
Toniyo Jackson 15-Dec-10 6:43am    
Vote my answer if its working.

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[^]
Share this answer
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,[^]
Share this answer
rockume 15-Dec-10 5:23am    
thanks can u help in binding the the query or data with the crystal report..

i am not that much used to crystal reports..
thank in advance
Toniyo Jackson 15-Dec-10 5:31am    
Try this,
Try this link. This will tell you how to bind using dataset.[^]
Share this answer

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