Click here to Skip to main content
15,884,836 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I need a sample code of using Crystal Report 2011 in Visual Studio .Net with C# language
I haven't found sample at internet.

please help me
Posted

String sql = "select * from tablename";
MySqlDataAdapter da = new MySqlDataAdapter(sql, dbe.getConnection());
ReportDataSet ds = new ReportDataSet();
da.Fill(ds, "table");
rptDeletePurchasebill rpt = new rptDeletePurchasebill();
rpt.SetDataSource(ds);
rpt.SetParametervalue("firstname",txtFirstName.Text);
CrystalReportViewer1.ReportSource = rpt;
 
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