I'm trying to create a report which needs to be saved as PDF. I'm using Microsoft Report Viewer and RDLC to generate the report which will be exported to PDF. The data comes from a webservice and no database involvement is there. The issue i'm having is
the RDLC is not displaying the images, only a red color cross is shown in the report viewer. Since the webmethod returns the path of the image, in RDLC the source = "External" and the complete URL is mentioned in the Value property. Also, EnableExternalImages
property of report viewer set to true.
Any ideas why the Images are not showing up in the report viewer.
Using : VS2008 (Target Framework 2.0), C#, Report Viewer Version 9.0
I've also tried this on VS2010 (Targer Framework 4.0), c# and Report Viewer 10.0 with same result.
please make sure you are getting images from a virtual directory incase of External resource.
Ashutosh Pathak
Blog: http://catchcode.blogspot.com Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
The images are not in the server where the web app. will be hosted, they are in a different location. A third party provider, which sends the url of the images only. Physically, the images are available at the third party's end and are accessible from the
browser. Much like this :
Ashutosh Pathak
Blog: http://catchcode.blogspot.com Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
Thanks for the suggestion. But i'm not using any SQL instance. It's just a web application in VS 2008 solution where i've added one report item. All the data to be displayed including the image URLs are fetched from the web service. Should i still try to
configure the SSRS configs.?
Ashutosh Pathak
Blog: http://catchcode.blogspot.com Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
swarup
Member
17 Points
21 Posts
Image not showing up in RDLC
Nov 07, 2012 08:52 AM|LINK
Hi,
I'm trying to create a report which needs to be saved as PDF. I'm using Microsoft Report Viewer and RDLC to generate the report which will be exported to PDF. The data comes from a webservice and no database involvement is there. The issue i'm having is the RDLC is not displaying the images, only a red color cross is shown in the report viewer. Since the webmethod returns the path of the image, in RDLC the source = "External" and the complete URL is mentioned in the Value property. Also, EnableExternalImages property of report viewer set to true.
Any ideas why the Images are not showing up in the report viewer.
Using : VS2008 (Target Framework 2.0), C#, Report Viewer Version 9.0
I've also tried this on VS2010 (Targer Framework 4.0), c# and Report Viewer 10.0 with same result.
Ashutosh Pat...
Contributor
5737 Points
1105 Posts
Re: Image not showing up in RDLC
Nov 07, 2012 10:31 AM|LINK
please make sure you are getting images from a virtual directory incase of External resource.
Blog: http://catchcode.blogspot.com
Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
santosh.jagd...
Star
7625 Points
1454 Posts
Re: Image not showing up in RDLC
Nov 07, 2012 10:32 AM|LINK
try this
http://www.codeproject.com/Questions/344978/RDLC-with-Images-Image-not-showing-in-report
MCP
swarup
Member
17 Points
21 Posts
Re: Image not showing up in RDLC
Nov 07, 2012 10:39 AM|LINK
The images are not in the server where the web app. will be hosted, they are in a different location. A third party provider, which sends the url of the images only. Physically, the images are available at the third party's end and are accessible from the browser. Much like this :
http://www.northampton-k12.us/blob/full/138840.jpg
Ashutosh Pat...
Contributor
5737 Points
1105 Posts
Re: Image not showing up in RDLC
Nov 07, 2012 11:15 AM|LINK
this may be a permission issue and you may have to configure your reporting services configuration manager, for more info refer the link below:
http://ntsblog.homedev.com.au/index.php/2010/05/07/ssrs-sql-server-reporting-services-how-to-reference-an-external-image-hosted-on-the-report-server/
http://msdn.microsoft.com/en-us/library/ms156302(v=sql.90).aspx
Blog: http://catchcode.blogspot.com
Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS
swarup
Member
17 Points
21 Posts
Re: Image not showing up in RDLC
Nov 07, 2012 11:52 AM|LINK
Thanks for the suggestion. But i'm not using any SQL instance. It's just a web application in VS 2008 solution where i've added one report item. All the data to be displayed including the image URLs are fetched from the web service. Should i still try to configure the SSRS configs.?
Ashutosh Pat...
Contributor
5737 Points
1105 Posts
Re: Image not showing up in RDLC
Nov 07, 2012 04:10 PM|LINK
yes, you should try to configure the ssrs as well
Blog: http://catchcode.blogspot.com
Please mark it as answer if it helps, as clicking on the button can save time of others :)
MCP,MCAD,MCSD,MCTS