Пример #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            HoaDonBanHangReport rpt = new HoaDonBanHangReport();

            rpt.Site = this.Site;
            return(rpt);
        }
Пример #2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DataTable           dt     = getDataHoaDonBan();
            HoaDonBanHangReport report = new HoaDonBanHangReport();

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

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