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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            QLThUOC.DataLayer.NhanVienDATA nv = new QLThUOC.DataLayer.NhanVienDATA();
            DataTable   tbl    = nv.LayDSNhanVien();
            rptNhanVien report = new rptNhanVien();

            report.SetDataSource(tbl);

            CrystalReportViewerNhanVien.ReportSource = report;
        }