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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            QLThUOC.DataLayer.LapPhieuNhapKhoDATA nk = new QLThUOC.DataLayer.LapPhieuNhapKhoDATA();
            DataTable       tbl    = nk.DSPhieuNhapKho();
            rptPhieuNhapKho report = new rptPhieuNhapKho();

            report.SetDataSource(tbl);

            CrystalReportViewerPhieuNhapKho.ReportSource = report;
        }