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: September 10, 2014 Modern mobile applications connect systems-of-engagement (mobile apps) with systems-of-record (traditional IT) to deliver new and innovative business value. But the lifecycle for development of mobile apps is also new and different. Emerging trends in mobile development call for faster delivery of incremental features, coupled with feedback from the users of the app "in the wild." This loop of continuous delivery and continuous feedback is how the best mobile …

  • Packaged application development teams frequently operate with limited testing environments due to time and labor constraints. By virtualizing the entire application stack, packaged application development teams can deliver business results faster, at higher quality, and with lower risk.

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds