Wednesday, 31 July 2013

SSRS 2012 - Fix for Chrome and Safari (Webkit)

Recently I had to setup a new instance of SSRS 2012 for +Rated People and found that it still didnt have native support for Google Chrome or Safari. Reports just were not rendering and left a blank screen.

This is nothing new... its just amazing that Microsoft still don't support those other browsers (basically anything with web kit)

There is however a solution to get the reports to render.
A number of solutions i found online were slightly inaccurate for my setup, so here we go:

The Fix
On the server navigate to and edit:
C:\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportManager\js\ReportingServices.js

(note, the bold part may be different for you)

In here append the following code to the end:

function pageLoad() {    
    var element = document.getElementById("ctl32_ctl09");
    if (element) 
    {
        element.style.overflow = "visible"; 
    } };

Save up and restart the SSRS service.

What this does, is change the way the browser handles overflow, for the element "ctl32_ctl09" - which is why the reports appear hidden on those browsers.

If that still doesn't work, you may be running a slightly different version of SSRS. If so, navigate to a report, view its source and search for "overflow", in proximity to one of the matches will be an element in the ctlxx_ctlxx format, just change the numbers as necessary...