public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { rptStudents rpt = new rptStudents(); rpt.Site = this.Site; return(rpt); }
private void crystalReportViewer1_Load(object sender, EventArgs e) { using (var Dbconnection = new MCDEntities()) { Impendulo.Common.Reports.rptStudents rpt = new Impendulo.Common.Reports.rptStudents(); List <Reports_StudentReports_Result> ds = Dbconnection.Reports_StudentReports().ToList <Reports_StudentReports_Result>(); rpt.SetDataSource(ds); crystalReportViewer1.ReportSource = rpt; crystalReportViewer1.RefreshReport(); }; }