There was a question on Twitter about how to display a report in HTML instead of MHTML due to some browser issues. Based on the fact that it was MHTML, I’m assuming we are talking about exporting a report as the default report view is HTML. First off, if we look at our export options for a report, we see the following:
HTML isn’t an option. One of the reasons or this is because if you export with HTML, and have items in your report such as images, they wouldn’t be included with the export. With MHTML, the binary of the image can be included and will be displayed properly. So, this is the default export option for HTML to make sure we get everything, and the report looks consistent with what is displayed for an on demand report.
That being said, you can change it. This is done within the rsreportserver.config file. Within this file we include the different renderers that Reporting Services will use.
One of the properties that you can see is the Visible property. Some of these are set to false by default. This actually lets Reporting Services know if this should be a visible export option. One of the items is for the HTML4.0 renderer.
By setting visible to true for this item, it then appears as an export option.
This should work good for a subscription operation, but if you just hit export from the browser, it will just pop it up in a new tab as HTML is an accepted format. So, you won’t get the prompt to download. From a browser perspective, you can also get a clean HTML version of the page via URL access: