Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Image 在Reporting services中,如何从表中的字符串或单元格添加图像?_Image_Reporting Services - Fatal编程技术网

Image 在Reporting services中,如何从表中的字符串或单元格添加图像?

Image 在Reporting services中,如何从表中的字符串或单元格添加图像?,image,reporting-services,Image,Reporting Services,我想做的是:我有一个字符串,其中包含图像的完整路径。我试图将外部图像添加到我的报告中,并将图像源设置为我的字符串。但每次我加载报告时,它都不会加载图像。我该怎么做,或者有更好的方法吗 感谢您对于外部图像,图像源需要是图像的URL。Reporting Services将尝试使用匿名访问获取图像 好的,我知道了。我所做的是在图像属性中,在常规选项卡中,我选择图像源作为外部,然后创建一个名为“@ImageURL”的报告参数,并在“使用此图像:”中选择它。 在表格上,我添加了这行代码: ReportVi

我想做的是:我有一个字符串,其中包含图像的完整路径。我试图将外部图像添加到我的报告中,并将图像源设置为我的字符串。但每次我加载报告时,它都不会加载图像。我该怎么做,或者有更好的方法吗


感谢您

对于外部图像,图像源需要是图像的URL。Reporting Services将尝试使用匿名访问获取图像


好的,我知道了。我所做的是在图像属性中,在常规选项卡中,我选择图像源作为外部,然后创建一个名为“@ImageURL”的报告参数,并在“使用此图像:”中选择它。 在表格上,我添加了这行代码: ReportViewer1.LocalReport.SetParameters(新参数(“ImageURL”,string.concat(“文件:\”,“C:\ImagesFolder\ImageName.jpg”))
这将正确显示图像。

是否有方法使图像源来自folderpath(即C:\Images\ImageName.jpg)?