OleDbConnection con=new OleDbConnection("Provider=Microsoft.jet.oledb.4.0; data source="+Application.StartupPath+@"\DataInfo1.mdb;"); con.Open(); OleDbDataAdapter da=new OleDbDataAdapter("SELECT * FROM salesitemdetails WHERE bill_no in(SELECT bill_no FROM salesdetails WHERE custid in( SELECT custid FROM custdetails where custarea='"+ this.textBox1.Text.Trim() +"' order by custid))",con); DataSet ds = new DataSet(); da.Fill(ds); CrystalReport1 cr = new CrystalReport1(); cr.SetDataSource(ds); cr.SetDatabaseLogon("Admin", ""); this.crystalReportViewer1.ReportSource = new CrystalReport1(); this.crystalReportViewer1.Show();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)