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

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #2
0
        private void frmINDSNV_Load(object sender, EventArgs e)
        {
            var            query = "SELECT MANV, TENNV, GIOITINH, NGAYSINH, QUEQUAN, CMND, SDT, EMAIL, CHUCVU FROM NHANVIEN";
            SqlDataAdapter da    = new SqlDataAdapter(query, DataProvider.Instance.connectionString);

            try
            {
                DataTable tbNHANVIEN = new DataTable();
                da.Fill(tbNHANVIEN);
                rptNHANVIEN rpt = new rptNHANVIEN();
                rpt.SetDataSource(tbNHANVIEN);
                crvINDSNV.ReportSource = rpt;
            }
            catch (SqlException ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }