Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            NhomHangReport rpt = new NhomHangReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        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();
        }