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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            QLThUOC.DataLayer.KhachHangDATA kh = new QLThUOC.DataLayer.KhachHangDATA();
            DataTable    tbl    = kh.LayDSKhachHang();
            rptKhachHang report = new rptKhachHang();

            report.SetDataSource(tbl);

            CrystalReportViewerKhachHang.ReportSource = report;
        }