Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can we use crystal report with dynamic dataset or datatable .
how to write the code in report form viewer.
Posted
Comments
Marc Gabrie 21-Aug-13 8:57am    
please elaborate a bit more about your needs as it's not clear for me what you really want at all. thanks,

Quote:
crystal report with dynamic dataset or datatable


adpt=new OleDbDataAdapter("select * from salesDetails ", conn);//conn as a OleDbConnection
adpt.Fill(dataSet);
            CanceledBillReport CBR = new CanceledBillReport(); //CanceledBillReport is a Crystal Report
            CBR.SetDataSource(dataSet.Tables[0]);
            CBR.Refresh();
            report_show RS = new report_show();//report_show is a form in which I added Crystal Report Viewer 
            RS.crystalReportViewer1.ReportSource = CBR;//you need to change CrystalReportViewer1 "Modify" property to public
            RS.crystalReportViewer1.Refresh();
            RS.Show();


I hope this will help You..
 
Share this answer
 
Here an example

Crystal Report with 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