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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void FormDSNV_Load(object sender, EventArgs e)
        {
            DataTable dt      = new DataTable();
            String    strLenh = "EXEC SP_RP_InDS_NhanVien";

            //MessageBox.Show(strLenh);
            dt = Program.ExecSqlQuery(strLenh);
            rp_DSNhanVien rp = new rp_DSNhanVien();

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