PDF cannot contain a link to an external image (at least from my understanding). For an image to appear in a PDF file, it must be embedded in the document. Therefore, in order to use an external image, your application must receive the image and save it in a document. The report viewer will try to do this for you.
Two possible answers:
First , for your application to pack the image into a PDF file, it must be able to extract the image from the URL you specify. If this URL is located behind the proxy server (from the point of view of your application server) and / or requires access to credentials, this will cause a problem with setting the default report viewer.
If a proxy server is a problem, see the settings in your web.config, which you can add below. You may also need to provide network credentials so that your application can authenticate with a proxy. There are many ways to solve this problem, but one of the easiest is to run the application as a service account in your domain, which has the rights to go through your proxy. You can verify this by starting the site as temporary (it should be temporary because it is a terrible security practice).
The image you use may require access to credentials (try raising the image in Firefox with empty cookies and see if you need credentials to access it). If this requires Windows authentication, the same proxy protection solution can be used to authenticate with the remote image. If this requires a different form of authentication, you might be better off loading and embedding the image in your project.
You can also load the image using other means in the code and convert it to an array of bytes for inclusion in the report. There are many examples on the Internet, including a stack overflow here .
Second , take a look at the following page:
http://msdn.microsoft.com/en-us/library/ms251715%28VS.80%29.aspx
Using external images in the ReportViewer Report is not enabled by default. To use an external image, you must set the EnableExternalImages property in your code. Depending on your network configuration, you may also need to bypass the proxy server settings to allow an external image. You can add the following settings for the Web.config file to bypass the local proxy. When changing the Web.config file, be sure to specify the name of the proxy server that is used on your network:
<system.net> <defaultProxy> <proxy usesystemdefault = "false" bypassonlocal = "true" proxyaddress = "http://< proxyservername >:80/" /> <defaultProxy> </system.net>
We hope that one or both of them will help.
Jerry