private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e) { DTO.fThongKeThucPhamDTO fthongkethucpham = new DTO.fThongKeThucPhamDTO(); DataTable table = fthongkethucpham.LayDS_THUCPHAM(); CrystalReport_tkThucPham report = new CrystalReport_tkThucPham(); report.SetDataSource(table); crystalReportViewer1.ReportSource = report; }
private void frmThongKeThucPham_Shown(object sender, EventArgs e) { DTO.fThongKeThucPhamDTO fthongkethucpham = new DTO.fThongKeThucPhamDTO(); DataTable table = fthongkethucpham.LayDS_THUCPHAM(); CrystalReport_tkThucPham report = new CrystalReport_tkThucPham(); report.SetDataSource(table); crystalReportViewer1.ReportSource = report; }