With SSRS we have the brilliant ability to be able to execute reports directly via URL and even export them in a particular format. I’ve got a report set up which I’m trying to export as an image, which works perfectly.
e.g.:
http://myserver/ReportServer?http://myserver/DynamicImageTest.rdl&Keyword=test&rs:Command=Render&rs:Format=IMAGE&rc:OutputFormat=PNG
However, because SSRS sets the header Content-Disposition: attachment, my browser always downloads the image, rather than displaying it inline.
I’m trying to embed the generated image somewhere else, so I need to be able to remove or suppress this behaviour.
Any way to do this, either using SSRS’ built in URL parameters or some workaround, or will I need to run the report via the web service to do this?
I don’t think there is a way to change these headers in SSRS directly. You’ll need to write your own service to get the content and send it along with the correct header. Fortunately writing that service will be pretty straightforward.
I’d be happy to learn that I’m wrong. If there is a method to change this, it’s hidden pretty deep in the SSRS config.