private void crystalReportViewer1_ReportRefresh(object source, CrystalDecisions.Windows.Forms.ViewerEventArgs e) { DTO.fThongKeMonAnDTO fthongkemonan = new DTO.fThongKeMonAnDTO(); DataTable table = fthongkemonan.LayDS_MA(); CrystalReport_tkMonAn report = new CrystalReport_tkMonAn(); report.SetDataSource(table); crystalReportViewer1.ReportSource = report; }
private void frmThongKeMonAn_Shown(object sender, EventArgs e) { DTO.fThongKeMonAnDTO fthongkemonan = new DTO.fThongKeMonAnDTO(); DataTable table = fthongkemonan.LayDS_MA(); CrystalReport_tkMonAn report = new CrystalReport_tkMonAn(); report.SetDataSource(table); crystalReportViewer1.ReportSource = report; }