private void frmbaocao_Load(object sender, EventArgs e) { CrystalReport1 cr = new CrystalReport1(); cr.SetDataSource(getnv()); crystalReportViewer1.ReportSource = cr; crystalReportViewer1.Refresh(); }
private void frmbaocao_Load(object sender, EventArgs e) { CrystalReport1 cr = new CrystalReport1(); cr.SetDataSource(getnv()); crystalReportViewer1.ReportSource = cr; crystalReportViewer1.Refresh(); }
private void frmBaoCaoTTNV_Load(object sender, EventArgs e) { DataTable dt = new DataTable(); dt = Conn.getDataTable("select * from tblTTNhanVien"); CrystalReport1 rp = new CrystalReport1(); rp.SetDataSource(dt); crystalReportViewer1.ReportSource = rp; }