sqlConn = new SqlConnection(Properties.Settings.Default.GEMConnection); cr0DataSet1 ds = new cr0DataSet1(); param = new SqlParameter("@companyName", CusMeterReport.apostate); da = new SqlDataAdapter("SELECT no,companyName,meterNo,fault,comments,date,MeterType WHERE companyName=@companyName",sqlConn); da.SelectCommand.Parameters.Add(param); da.Fill(ds.FaultyMeters); cr0 c0 = new cr0(); c0.SetDataSource(ds); crystalReportViewer1.ReportSource = c0;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)