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

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DataTable      dt     = getAllNV();
            NhanVienReport report = new NhanVienReport();

            report.SetDataSource(dt);
            ReportForm reportForm = new ReportForm();

            reportForm.rpt.ReportSource = report;
            reportForm.ShowDialog();
        }