Reports.CenterReport cr = new Reports.CenterReport(); cr.Database.Tables[0].SetDataSource(dt); crystalReportViewer1.ReportSource = cr;
'Project.Reports.CenterReport' does not contain a definition for 'Database' and no extension method 'Database' accepting a first argument of type 'Project.Reports.CenterReport' could be found (are you missing a using directive or an assembly reference?)
customerReport = new ReportDocument(); string reportPath = Server.MapPath("CrystalReport.rpt"); customerReport.Load(reportPath); customerReport.SetDataSource(dt);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)