コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptPhieuGoi rpt = new rptPhieuGoi();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void BaoCaoPhieuGoi_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            KetNoi    kn = new KetNoi(frmDangnhap.tenmay);

            dt = kn.laybangHoaDonchodgv("select * from HoaDon");
            rptPhieuGoi rpt = new rptPhieuGoi();

            rpt.SetDataSource(dt);
            crystalReportViewer1.ReportSource = rpt;
        }