//绑定报表数据源
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();