Click here to Skip to main content
15,886,770 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how we can use crystal reports...can any one explain report designing in c#
Posted

 
Share this answer
 
v2
Comments
nitin bhoyate 2-Jun-11 5:55am    
First link is very useful......
Toniyo Jackson 2-Jun-11 6:31am    
Ohh... Thanks. Its my article :)
ambarishtv 2-Jun-11 6:44am    
Hi.. this is nice article.. my A+ for u.. :)
first you need to add crystal report in your project
1) Right click on your project in VS-->Add-->New Item-->Select Reporting-->CrystalReport-->Select Blank Crystal report to add blank report

2)TO send data to crystal report you should have dataset and datatable,create new dataset and add new datatable into dataset.

3) now select crystal report and go to Field explorer
right click database field-->database expert-->project data-->ADO.net Datasets -->select dataset created in step 2

4)now datatable will be displayed in database expert (after expanding)

5)select the fields from datatable and put them on (drag) on crystal report arrange as u wish
6)add new form and place crystal report viewer on new form

7) send data to dataset (datatable)

formName formName = new formName ();
                    CrystalReportName rpt = new CrystalReportName ();
                    rpt.SetDataSource(dt);//dt is your datatable wich contains data
                    rpt.Refresh();
                    formName .crystalReportViewer1.ReportSource = rpt;
                    formName .Show();



enjoy
 
Share this answer
 
v2

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