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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            QLThUOC.DataLayer.LapPhieuXuatKhoDATA xk = new QLThUOC.DataLayer.LapPhieuXuatKhoDATA();
            DataTable       tbl    = xk.DSPhieuXuatKho();
            rptPhieuXuatKho report = new rptPhieuXuatKho();

            report.SetDataSource(tbl);

            CrystalReportViewerPhieuXK.ReportSource = report;
        }