SqlConnection cnn; string connectionString = null; string sql = null; connectionString = "Data Source=localhost\\sqlexpress;Initial Catalog=HRMDB; Integrated Security=True"; cnn = new SqlConnection(connectionString); cnn.Open(); sql = "select * from SettingsUsers"; SqlDataAdapter dscmd = new SqlDataAdapter(sql, cnn); DataSet ds = new DataSet(); dscmd.Fill(ds, "SettingsUsers"); objRpt.Load(Server.MapPath(@"CrystalReport1.rpt")); objRpt.SetDataSource(ds.Tables[0]); CrystalReportViewer1.ReportSource = objRpt; CrystalReportViewer1.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)