async void ReportLoad() { try { ReportDataSource reportDataSource1 = new ReportDataSource(); ReportDataSource reportDataSource2 = new ReportDataSource(); string reportpath = string.Empty; if (ReportType == "Bill") { await objReportViewModel.GetBillDetails(); DAL.logger.Log(System.Reflection.MethodBase.GetCurrentMethod().Name, MessageType.Debug); reportpath = ConfigurationSettings.AppSettings["Bill"].ToString(); reportDataSource1.Name = "DataSet1"; reportDataSource1.Value = objReportViewModel.lstBillDataSource; } this._reportViewer.LocalReport.EnableExternalImages = true; this._reportViewer.LocalReport.DataSources.Clear(); this._reportViewer.LocalReport.DataSources.Add(reportDataSource1); this._reportViewer.LocalReport.DataSources.Add(reportDataSource2); this._reportViewer.LocalReport.ReportPath = reportpath; string imagePath = ConfigurationSettings.AppSettings["TempPath"].ToString(); imagePath = "file:///" + "c://Temp/SMS//" + Common.ClientLogo; ReportParameter parameter = new ReportParameter("logopath", imagePath); _reportViewer.LocalReport.SetParameters(parameter); this._reportViewer.ProcessingMode = ProcessingMode.Local; _reportViewer.RefreshReport(); _reportViewer.Refresh(); } catch (Exception ex) { DAL.logger.Log(Convert.ToString(ex.InnerException), MessageType.Debug); } }