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

            rpt.Site = this.Site;
            return(rpt);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            QLThUOC.DataLayer.ThuocDATA t = new QLThUOC.DataLayer.ThuocDATA();
            DataTable tbl    = t.DSThuoc();
            rptThuoc  report = new rptThuoc();

            report.SetDataSource(tbl);

            CrystalReportViewerThuoc.ReportSource = report;
        }