rdlc中定义导航
=Parameters!url.Value & "/orders/ImportCurrentOrderSales.aspx?OrderID="& Fields!ddbh.Value
//将第一个框架中的日期转换成从00点开始
ObjectDataSource1.SelectParameters["startddrq"].DefaultValue = StartTime;
ObjectDataSource1.SelectParameters["endddrq"].DefaultValue = EndTime;
ObjectDataSource1.SelectParameters["QueryCode"].DefaultValue = QueryCode;
ObjectDataSource1.SelectParameters["proxyid"].DefaultValue = base.GetUserID();
//将第二个框中的日期转换成从23点结束
//传参数
ReportParameter urlParm = new ReportParameter();
urlParm.Name = "url";
string sDomain;
if (ConfigurationSettings.AppSettings["SystemDomain"] != null)
sDomain = ConfigurationSettings.AppSettings["SystemDomain"].ToString();
else
sDomain = "http://127.0.0.1/resin";
urlParm.Values.Add(sDomain);
ReportViewer1.LocalReport.SetParameters(new ReportParameter[] { urlParm });//传入url参数
//结束
ObjectDataSource1.CacheDuration = 0;
ObjectDataSource1.DataBind();
ReportViewer1.LocalReport.EnableHyperlinks = true;
ReportViewer1.LocalReport.Refresh();