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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void Nhanvien_Load(object sender, EventArgs e)
        {
            DataTable dt = new DataTable();
            Database  ds = new Database();

            dt = ds.Docbang("Select *From NHANVIEN");
            rpnhanvien rp = new rpnhanvien();

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