public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportDonviTinh rpt = new CrystalReportDonviTinh();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void frmThongKeDonViTinh_Shown(object sender, EventArgs e)
        {
            GiaoDienCuaHang.DataLayer.DonViTinhData dvt = new GiaoDienCuaHang.DataLayer.DonViTinhData();
            DataTable tbl = dvt.LayDSDonViTinh();
            CrystalReportDonviTinh report = new CrystalReportDonviTinh();

            report.SetDataSource(tbl);
            crystalReportViewer1.ReportSource = report;
        }