Click here to Skip to main content
15,921,622 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
After I converted an existing windows application from VS 2008 to VS 2010, then I got this error when I tried to open Crystal Reports when I use this code-

ds.Tables[0].Rows.Add(dr);
CrystalReport1 crreport = new CrystalReport1();
crreport.SetDataSource(ds.Tables[0]); // this line gives exception
crystalReportViewer1.ReportSource = crreport;
crystalReportViewer1.Refresh();

and it gives exception :- Data Source Exception handled.
Please help me.
Posted

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