外部图像不会显示 [英] External Image will not display

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

问题描述

我将图像保存在//servername/foldername/image1.jpg上的文件夹中,并为此文件夹创建了一个网站http:// Images。在我的报告中,如果图像不可用,我试图显示noImage.jpg。


为此,我创建了default.aspx。此default.aspx将图像名称"image1"作为参数,如果找不到该文件(image1.jpg)则返回noImages.jpg并且它与图像位于同一文件夹中。报告上的图像控件具有source = External。当值设置为http://images/images1.jpg时,它会显示图像,但是当我将其更改为 "http:// Images / default.aspx?ID ="&参数!imagesname.value有红色x。
当我从浏览器调用http:// Images / default.aspx?ID = image1时它可以工作。

解决方案

嗨dec2791,

默认情况下,不启用外部图像。你可以通过api打开它们。 http://msdn.microsoft.com/en -us /库/ microsoft.reporting.webforms.localreport.enableexternalimages(VS.80)的.aspx

I have images saved in a folder on //servername/foldername/image1.jpg and created a website http://Images for this folder. On my report I am trying to display noImage.jpg if the images are not available.

For this I have created default.aspx. This default.aspx takes image name "image1" as parameter andif  it cannot find the file (image1.jpg) returns noImages.jpg and it is in the same folder as images. The image control on the report has source=External. When value is set to http://images/images1.jpg it displays the image but when I change it to  "http://Images/ default.aspx?ID=" & parameter!imagesname.value there is red x.
When i call http://Images/ default.aspx?ID=image1 from a browser it works.

解决方案

Hi dec2791,

By default, external images are not enabled. You can turn them on via the api. http://msdn.microsoft.com/en-us/library/microsoft.reporting.webforms.localreport.enableexternalimages(VS.80).aspx


这篇关于外部图像不会显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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