private void LoadClassDetailReport() { long CourseID = UtilityFunctions.MapValue <long>(DdlCourseID.SelectedValue, typeof(long)); DateTime dtStart = UtilityFunctions.MapValue <DateTime>(TxtStartDate.Text, typeof(DateTime)); DateTime dtEnd = UtilityFunctions.MapValue <DateTime>(TxtEndDate.Text, typeof(DateTime)); DataTable dt = _PersonBAL.GetConductedCoursesData(dtStart, dtEnd, CourseID); ReportViewer1.ProcessingMode = ProcessingMode.Local; ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Report/Tran_ConductedCoursesReport.rdlc"); // DataSet ds = GetTrainerDetailsForReports; ReportDataSource datasource = new ReportDataSource("ConductedCoursesReport", dt); ReportViewer1.LocalReport.DataSources.Clear(); ReportViewer1.LocalReport.DataSources.Add(datasource); ReportViewer1.LocalReport.Refresh(); //// DataSet ds = GetTrainerDetailsForReports; // ReportViewer1.LocalReport.DataSources.Clear(); // ReportDataSource RDS1 = new ReportDataSource("OccupancyReport", ds.Tables[0]); // ReportViewer1.ProcessingMode = ProcessingMode.Local; // ReportViewer1.LocalReport.EnableExternalImages = true; // ReportViewer1.LocalReport.ReportEmbeddedResource = "~/Report/Tran_VenueOccupancyReport.rdlc"; // ReportViewer1.LocalReport.DataSources.Clear(); // ReportViewer1.LocalReport.DataSources.Add(RDS1); }