public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { EasyGradeProReport rpt = new EasyGradeProReport(); rpt.Site = this.Site; return(rpt); }
public void loadEasyGradeProReport(List<Customer> students) { EasyGradeProReport rpt = new EasyGradeProReport(); DataSetStudents ds = new DataSetStudents(); foreach (Customer c in students) { DataRow cRow = ds.Student.NewRow(); cRow["CustomerID"] = c.CustomerID; cRow["CustomerName"] = c.CustomerName; cRow["FirstName"] = c.FirstName; cRow["LastName"] = c.LastName; cRow["Gender"] = c.Gender; cRow["EmailAddress"] = c.EmailAddress; cRow["Level"] = c.Level; cRow["Section"] = c.Section; ds.Student.Rows.Add(cRow); } rpt.SetDataSource(ds); crystalReportViewer1.ReportSource = rpt; crystalReportViewer1.Refresh(); }
public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { EasyGradeProReport rpt = new EasyGradeProReport(); rpt.Site = this.Site; return rpt; }