private void frmReportViewer_Load(object sender, EventArgs e) { string appPath = AppDomain.CurrentDomain.BaseDirectory; appPath = appPath.Replace(@"bin\Debug", string.Empty); string reportPath = Path.Combine(appPath, "Reports"); string reportName = "GSTInvoice.rdlc"; this.reportViewer2.Reset(); this.reportViewer2.LocalReport.ReportPath = Path.Combine(reportPath, reportName); this.reportViewer2.LocalReport.DataSources.Clear(); //this.reportViewer1. DataTable saleInvoice = applicationFacade.GetSaleInvoiceData(5); //DataTable firmProperties = applicationFacade.GetFirmProperties(2); ReportDataSource dtSaleInvoice = new ReportDataSource("GSTInvoiceResult", saleInvoice); // ReportDataSource dtFirmProperties = new ReportDataSource("FirmProperties", firmProperties); this.reportViewer2.LocalReport.DataSources.Add(dtSaleInvoice); //this.reportViewer1.LocalReport.DataSources.Add(dtFirmProperties); this.reportViewer2.RefreshReport(); this.reportViewer2.Visible = true; this.reportViewer2.RenderingComplete += ReportViewer1_RenderingComplete; }