Example #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptKhachHang rpt = new rptKhachHang();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void BaoCaoKhachHang_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            KetNoi    kn = new KetNoi(frmDangnhap.tenmay);

            dt = kn.bangKhachHangchorpt("select * from KhachHang");
            rptKhachHang rpt = new rptKhachHang();

            rpt.SetDataSource(dt);
            crystalReportViewer1.ReportSource = rpt;
        }