all groups > sql server reporting services > december 2004 >
You're in the

sql server reporting services

group:

images in HTML reports


images in HTML reports Sanjay
12/28/2004 4:59:01 PM
sql server reporting services:
How to render image in HTML reports?
I have a webapp which invokes Reporting Services web service to generate
reports in HTML format. The reports are for internet users - the image is not
accessible to these internet users because they cannot access the report
server directly which is in the intranet. Is there a solution to this problem
at all?

Thanks
Re: images in HTML reports Brian Welcker [MS]
12/29/2004 3:37:28 AM
Yes, although it is not simple. You need to use the RenderStream method to
get the image and put it in a place where it is available to the Internet
users. You need to pass this path into the initial Render() call using the
<StreamRoot> deviceInfo.

For what it is worth, this will be much easier in SQL 2005 RS.

--
Brian Welcker
Group Program Manager
Microsoft SQL Server

This posting is provided "AS IS" with no warranties, and confers no rights.


[quoted text, click to view]

Re: images in HTML reports Sanjay
12/29/2004 8:53:06 AM
That works for me for the intranet users but not for the internet users
because the location where I can generate the image with RenderStream is not
available on internet.
Including an External Web image could work for me because I'm including the
same banner image in my reports, but when I tried to include an External Web
Image like
http://msdn.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif
in my report in report designer, I got message 'Invalid Image'. Is that
expected or is it because of some restrictions in my environment?

Thanks
Sanjay
[quoted text, click to view]
Re: images in HTML reports Brian Welcker [MS]
12/29/2004 10:15:09 AM
All images in the reports are effectively "internal". URL only means that
the Report Server retrieves the image from a URL. We need to actually store
the image for consistency (caching, snapshots, etc.). We don't have a 'late
bound' image.

I don't understand why you can't copy the image to a directory on the
external web site.

--
Brian Welcker
Group Program Manager
Microsoft SQL Server

This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

Re: images in HTML reports Sanjay
12/29/2004 11:35:04 AM
I can't copy the image to a directory on the external web site because I
don't have access to the report server from the external web site machine as
a result of which I have an intermediate ReportsGeneratorService sitting in
the intranet which generates the reports. In addition I don't have access to
create image files on the external web site machine from the intranet-sitting
ReportsGeneratorService. For Security Reasons. Any suggestions?
Can I manipulate the HTML on the external web-site to pick up the images
from a location in the external web-site?

[quoted text, click to view]
Re: images in HTML reports Brian Welcker [MS]
12/30/2004 2:11:22 PM
Yes, this is what StreamRoot is for. You can put whatever location you want
for picking up the images in the report.

--
Brian Welcker
Group Program Manager
Microsoft SQL Server

This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

AddThis Social Bookmark Button