Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CrystalReportKhachHang rpt = new CrystalReportKhachHang();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void frmThongKeKhachHang_Shown(object sender, EventArgs e)
        {
            GiaoDienCuaHang.DataLayer.KhachHangData kh = new GiaoDienCuaHang.DataLayer.KhachHangData();
            DataTable tbl = kh.LayDSKhachHang();
            CrystalReportKhachHang report = new CrystalReportKhachHang();

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