private void bindreport() { BusinessLayer blayer = new BusinessLayer(); DataTable dt = new DataTable(); dt = blayer.getBill(Global.CompanyId, BusinessLayer.MyBillNo); reportViewer1.LocalReport.Refresh(); reportViewer1.LocalReport.DataSources.Clear(); ReportDataSource datasource = new ReportDataSource("dsBill", dt); reportViewer1.LocalReport.DataSources.Add(datasource); string exeFolder = Path.GetDirectoryName(Application.ExecutablePath); string reportPath = Path.Combine(exeFolder, @"ReportBill.rdlc"); reportViewer1.LocalReport.ReportPath = reportPath; this.reportViewer1.RefreshReport();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)