Click here to Skip to main content
15,888,968 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.
Posted
Updated 13-Dec-10 22:29pm
v2
Comments
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,
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-stepbystep.htm[^]
 
Share this answer
 
v2
Comments
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,
http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-without-database.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[^]
 
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