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

            rpt.Site = this.Site;
            return(rpt);
        }
 private void FormListStudents_Load(object sender, EventArgs e)
 {
     using (ModelTD db = new ModelTD())
     {
         CrystalReportListStudents crystalReport = new CrystalReportListStudents();
         crystalReport.SetDataSource(db.Students);
         crystalReportViewer1.ReportSource = crystalReport;
     }
 }