views:

52

answers:

1

I have a small web site where i maintain users data. I maintain the users data in table and store there images like /images/users/user_id.jpeg on the server.

I am using the ReportViewer control in the asp.net page to show the reports from SSRS in the web application.

Now user want reports where they can see the users image in the report so that they can export it as pdf and get it printed.

In report i tried html image tag with full and relative url with option to render HTML however its not working. Also i tried the image control in the toolbox with external url and that too appears to be now working. Can someone please help me get around this problem or guide me to some helpful links. Thanks all,

A: 

It will be a lot easier to set up the report so that your users can see the image, if you can see the image in preview in Report Designer.

  1. Make sure you have a working URL that takes you to one of your images. Test it, by pasting the URL into the address bar of your browser and ensure that the image is displayed in the browser.

  2. Delete the existing image from your report. Insert a new image into the report object (normally a list or table) you are using to display your table. (This should be where the old image was.)

  3. Specify Web as the image source, and enter your working URL as the URL of the image.

  4. Preview the report in the report designer. You should be able to see the image (with the hardcoded URL) displayed correctly in the report.

  5. Assuming all images are stored in the same directory on your server, switch to the layout tab of your report designer and click on the image object. In the Properties window, the value attribute should be the harcoded URL.

  6. Click on the <Expression...> option from the dropdown menu for the Value attribute. Edit the expression so that it says ="your URL, without the filename" & Fields!your image filename data field name.Value

  7. Preview the report in the report designer. You should be able to see the appropriate image for your data displayed correctly in the report.

  8. If everything has gone correctly up to this point, deploy the report and try viewing it in the Report Manager. You should be able to see the appropriate image for your data displayed correctly in the report.

At this point, your users should now be able to see the report images.

Mark Bannister
3. image source is "External" right? there is no source as Web.5. My image url will be like http://xyz/images/user_id.jpg so i create it using expression for each image per rowI followed the same steps but no luck........ the image are not visible on the dev environment itself when i say preview report.
Anil Namde
Yes one point when i type url of image in the browser it redirects me to authentication page. Its asp.net site installed on local machine behind IIS. Now how can i get around this issue ?
Anil Namde
Wow the work around for credential is found now i can access the images using URL however they are still not showing on the report ?
Anil Namde
@Anil - image source: When I drag an image object from the toolbox onto the report layout area, I get an Image Wizard dialog asking me to Select the Image Source from the options Embedded, Project, Database or Web. I am using SSRS 2005 - the available options may be different in different versions of SSRS.
Mark Bannister
@Anil - can your users use the same workaround to access the images, or will they be completely prevented from viewing them?
Mark Bannister