WinForms的.rdlc数据报告中的外部图像 [英] External images in .rdlc data reports for winforms
问题描述
我在Google上搜索了几天,以显示.rdlc数据报告上的图像,但仍未找到解决方案。
我已设置:
reportViewer1.LocalReport.EnableExternalImages = true;
图像属性为外部,并将参数value设置为value属性。
I searched Google for days to show images on .rdlc datareports but still not found a solution.
I have set:
reportViewer1.LocalReport.EnableExternalImages = true;
Image properties to "External" and have set parameters value to the value property.
ReportParameter Path;
Path = new ReportParameter("Path", "C:\\Test\\579569.png");
this.reportViewer1.LocalReport.SetParameters(new ReportParameter[] { Path });
但我仍然出现了损坏的图像。我缺少什么吗?我正在WinForms中尝试此操作。
我知道这个问题是别人问的。.但是我没有得到想要的结果。
But still i get a broken image. Is there something i am missing.I am trying this in WinForms. I know this question is asked by others..but i didn't get the result that i wanted.
预先感谢
推荐答案
图片网址必须使用格式 file://// F:\111\333.JPG
The image url must be using format file:////F:\111\333.JPG
这篇关于WinForms的.rdlc数据报告中的外部图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!