private void frmThongKeSachDangMuon_Load(object sender, EventArgs e) { reportViewer1.Reset(); DataTable dt = BUS_OBJ.loadDSPhieuMuonChuaTra(); this.reportViewer1.RefreshReport(); //System.IO.Stream report = new System.IO.Stream(); //reportViewer1.LocalReport.LoadReportDefinition(); //reportViewer1.LocalReport.ReportPath = @"D:\Project\C #\QLTV 3 tier\QLTV 3 tier\rptSachChuaTra.rdlc"; reportViewer1.LocalReport.ReportPath = "rptSachChuaTra.rdlc"; reportViewer1.LocalReport.DataSources.Clear(); Microsoft.Reporting.WinForms.ReportDataSource newDataSource = new Microsoft.Reporting.WinForms.ReportDataSource("dsSachDangMuon", dt); reportViewer1.LocalReport.DataSources.Add(newDataSource); reportViewer1.RefreshReport(); }