双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

rdlc 动态获取图片作页眉,页脚

xzg1109 xzg1109 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
pathHeadUrl = @"http://localhost:90/files.ashx?file=report/template/mets/2_footer.jpg";

ReportParameter imageHead = new ReportParameter("HeadImgUrl", pathHeadUrl);

List<ReportParameter> parameterList = new List<ReportParameter>();
parameterList.Add(imageHead);

this.ReportViewer1.LocalReport.SetParameters(parameterList);
this.ReportViewer1.LocalReport.Refresh();

问题是,“http://localhost:90/files.ashx?file=report/template/mets/2_footer.jpg”,可以在浏览器中看到,
但是作为值传给参数时,导出word后,显示不出来图片。多谢指教!!!

...全文
评论 1
收藏 已收藏
分享
返回顶部
xzg1109
图表区 4,818 成员 14,133 内容