SqlConnection cnn; string connectionString = null; string sql = null; connectionString = "connectring to sql server"; cnn = new SqlConnection(connectionString); cnn.Open(); sql = "SELECT multi table WHERE condition"; SqlDataAdapter dscmd = new SqlDataAdapter(sql, cnn); DataSet ds = new DataSet(); dscmd.Fill(ds, "Productandlist"); objRpt.SetDataSource(ds.Tables[0]); crystalReportViewer1.ReportSource = objRpt; crystalReportViewer1.Refresh();
objRpt.SetDataSource(ds);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)