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

  • With JRebel, developers get to see their code changes immediately, fine-tune their code with incremental changes, debug, explore and deploy their code with ease (both locally and remotely), and ultimately spend more time coding instead of waiting for the dreaded application redeploy to finish. Every time a developer tests a code change it takes minutes to build and deploy the application. JRebel keeps the app server running at all times, so testing is instantaneous and interactive.

  • Instead of only managing projects organizations do need to manage value! "Doing the right things" and "doing things right" are the essential ingredients for successful software and systems delivery. Unfortunately, with distributed delivery spanning multiple disciplines, geographies and time zones, many organizations struggle with teams working in silos, broken lines of communication, lack of collaboration, inadequate traceability, and poor project visibility. This often results in organizations "doing the …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds