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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void HienThiBaoCao_Load(object sender, EventArgs e)
        {
            KetNoi    conn = new KetNoi();
            DataTable dt   = new DataTable();

            dt = conn.DataTable("SELECT * FROM dbo.HoaDon");
            rpHD hd = new rpHD();

            hd.SetDataSource(dt);
            rpHoaDon.ReportSource   = hd;
            rpHoaDon.DisplayToolbar = true;
        }