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

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
        private void btnDanhsachPhongban_Click(object sender, EventArgs e)
        {
            PhongbanBUL cls = new PhongbanBUL();

            Report.frmBaoBieu.dt = cls.Danhsachphongban();
            Phongbanreport obj = new Phongbanreport();

            obj.SetDataSource(dt);
            crystalReportViewer1.ReportSource = obj;
            crystalReportViewer1.Refresh();
        }