示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptStudents rpt = new rptStudents();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
 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();
     };
 }