Displaying the Images Returned by the RenderStream Method of SQL Server Reporting Services

I am working on a project that is a Web-based application that uses the render and RenderStream methods of SQL Server reporting services.

When you use the Render() method of SQL Server reporting service, it returns to you the stream of the report. If you have images in your report and you are getting the stream of type HTML, the returned stream will not contain the images in it. It will contain streamIdb's for all the objects such as charts, images, and so forth. Then, after calling the render method, you need to call the RenderStream() method to get all the objects.

As I got started on it, I had some problems getting the rendered images to appear in the report. It turns out that these resources are output without any file extension, so IE wasn't sure how to handle them.

To fix this problem, you have to configure your Web server. The steps to do this follow:

  1. In Internet Information Services Manager, navigate to the directory where external resources are rendered (the ASP.NET Machine account <machinename>\ASPNET will need to have write permissions to this directory to successfully create resources).
  2. Open the Properties page for of your Web application and select the HTTP Headers tab.
  3. Click 'MIME Types.'
  4. 4.Click 'New Type.'
  5. In 'Associated Extension.' enter '*' (no quotes).
  6. In 'Content Type (MIME).' enter 'image/png' (no quotes).


About the Author

Malik Asif

I am Malik Asif, a Software Engineer by Profession. working at Palmchip Corporation Pakistan.

Comments

  • Rendering Reporting Services graphs in Sharepoint

    Posted by prakashpatil_1978 on 06/13/2005 07:39am

    Hi, I have developed a sharepoint site which displays Reporting Services reports. The problem here is i can view the report but not the image, somehow the image cannot be rendered. However, if i have the Sharepoint and Reporting Service installed on same machine, the graph renders well. So i think in my case im having some issue while rendering the graph from network machine. Any help will be appriciated. Thanks in advance, Prakash.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • On-demand Event Event Date: October 29, 2014 It's well understood how critical version control is for code. However, its importance to DevOps isn't always recognized. The 2014 DevOps Survey of Practice shows that one of the key predictors of DevOps success is putting all production environment artifacts into version control. In this webcast, Gene Kim discusses these survey findings and shares woeful tales of artifact management gone wrong! Gene also shares examples of how high-performing DevOps …

  • IBM Worklight is a mobile application development platform that lets you extend your business to mobile devices. It is designed to provide an open, comprehensive platform to build, run and manage HTML5, hybrid and native mobile apps.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds