我尝试通过filestream
将子报告放入报告中时,出现以下错误:
ReadTimeout ='subReport.ReadTimeout'产生类型的异常 'System.InvalidOperationException'
我写的代码是:
Stream subReport = new FileStream (Server.MapPath ("~ / Rpts / Rdlc /" + _ds.GetRdlc ()), FileMode.Open, FileAccess.Read);
reportViewer.LocalReport.LoadSubreportDefinition ("subreport", subReport);