Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptPhanCong rpt = new rptPhanCong();

            rpt.Site = this.Site;
            return(rpt);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            QLThUOC.DataLayer.PhanCongDATA pc = new QLThUOC.DataLayer.PhanCongDATA();
            DataTable   tbl    = pc.DSPhanCong();
            rptPhanCong report = new rptPhanCong();

            report.SetDataSource(tbl);

            CrystalReportViewerPhanCong.ReportSource = report;
        }