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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DataTable dt = getDataNhomHang();

            NhomHangReport report = new NhomHangReport();

            report.SetDataSource(dt);
            ReportForm form = new ReportForm();

            form.rpt.ReportSource = report;
            form.ShowDialog();
        }