public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptPhieuHen rpt = new rptPhieuHen();

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

            dt = kn.laybangPhieuHenchodgv("select * from PhieuHen");
            rptPhieuHen rpt = new rptPhieuHen();

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