Microsoft KB Archive/842537

= FIX: An image in a report does not appear in the preview of the report if the value property of the image is set to a URL path =

Article ID: 842537

Article Last Modified on 4/3/2007

-

APPLIES TO


 * Microsoft SQL Server 2000 Reporting Services

-



Bug #: 155269 (SQL Server 8.0)



SYMPTOMS
In Microsoft SQL Server 2000 Reporting Services, when you preview a report that contains an image, you may notice that the image does not appear in the preview. This problem may occur if all the following conditions are true:  The Source property of the image control is set to External. The Value property of the image control is set to a URL path of an image file that is similar to the following:

file:// 

For example, the Value property is set to file://c:/Test.jpg.

Additionally, you may notice an error message that is similar to the following in the Output window of Report Designer:

The value expression for the image ' ' contains a URL reference, which is not supported.

You may also notice this behavior when you publish and then preview the report.



RESOLUTION
To resolve this problem, obtain the latest service pack for SQL Server 2000 Reporting Services. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

842440 How to obtain the latest service pack for SQL Server 2000 Reporting Services



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in Microsoft SQL Server 2000 Reporting Services Service Pack 1.



Steps to reproduce the behavior
 Start Microsoft Visual Studio .NET 2003. Create a new report project, and then add a new report to the project by using the Report Wizard. In Layout view, add an image control to the report by using the Image Wizard.</li> Set the properties of the image control to the following values:

Note: Replace  with an appropriate URL path of an image file. For example, the URL path is file://c:/test.jpg.</li> Preview the report.

You may notice the behavior that is described in the &quot;Symptoms&quot; section.</li></ol>

<div class="references_section">