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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            DataTable      dt     = getDataHangNhap();
            HangNhapReport report = new HangNhapReport();

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

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