Report Viewer 2010中的外部图像问题 [英] problem with external image in Report Viewer 2010

查看:246
本文介绍了Report Viewer 2010中的外部图像问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在使用microsoft report viewer 2010.我想添加外部图片但是我收到此错误:



本地报告处理期间发生错误。

报告报告包含外部图像。尚未为此报告设置EnableExternalImages属性。


RDLC文件图像源中的
为外部,表达式为:



=file:///+参数!CompanyLogo.Value



=file:///&参数!CompanyLogo.Value

Hi everyone
I'm using microsoft report viewer 2010. I want to add external image but i get this error:

An error occurred during local report processing.
Report 'Report' contains external images. The EnableExternalImages property has not been set for this report.

in RDLC file image source is External and expression is :

="file:///" + Parameters!CompanyLogo.Value
OR
="file:///" & Parameters!CompanyLogo.Value

string strLogo = Server.MapPath(ResolveUrl("~/images/logo.png"));
List<ReportParameter> reportParams = new List<ReportParameter>();
reportParams.Add(new ReportParameter("CompanyName", "CompanyName", false));
reportParams.Add(new ReportParameter("CompanyLogo", strLogo, false));

reportViewer.LocalReport.EnableExternalImages = true;
reportViewer.LocalReport.SetParameters(reportParams);
reportViewer.LocalReport.Refresh();





但无论如何我得到同样的错误。



求救!



but anyway i get same error.

Help!

推荐答案

亲爱的!



我使用的是Report Viewer,URL存储在字符串中格式在数据库字段名称URL中,我想动态地在报表查看器上显示图像,我想根据存储的URL字符串显示图像,所以请!如果你有任何想法让我明智地解决这个问题。



拜托!如果可能的话,还给我发送所有步骤明智的解决方案..........
Dear.!

I am using Report Viewer, the URL is stored in string format in the database field name URL, i want to show the image on report viewer dynamically, I want to display image according to the stored URL string, So please! if you have any idea get me the step wise clear solution of this problem.

Please! Send me the all over step wise solution also code if it is possible ..........


这篇关于Report Viewer 2010中的外部图像问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆