绑定报表
//綁定報表數據源
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
總結
- 上一篇: android studio 导入依赖报
- 下一篇: 动静分离-静态资源缓存控制