绑定报表

it2022-05-05  126

//绑定报表数据源 string url = HttpUtility.UrlDecode(Page.Request.Url.AbsolutePath); string filepath = Server.MapPath(url); this.rpt1.LocalReport.ReportPath = Path.Combine(Path.GetDirectoryName(filepath), "InventoryRecord.rdlc"); // ReportDataSource dtSource = new ReportDataSource("ProductTrace_ProductTrace", dt); this.rpt1.LocalReport.DataSources.Clear(); this.rpt1.LocalReport.DataSources.Add(dtSource); // this.rpt1.LocalReport.Refresh();

  

转载于:https://www.cnblogs.com/haigui-zx/p/6382027.html


最新回复(0)