VisualStudio Report Viewer not rendering report body in Chrome

Liam picture Liam · Jun 17, 2011 · Viewed 13k times · Source

I'm aware that Chrome is not supported - http://msdn.microsoft.com/en-us/library/ms156511.aspx for the Report Viewer.

The solution here has not worked for me ReportViewer problem in google chrome unfortunately

In our case the report body is blank. I have come across solutions to report height issues and distortion issues in the tool bar but in my case I have yet to get to that stage.

When I navigate to the Report Manager in Chrome I can see my reports [They are not perfect but are at least showing the report body]

http://localhost/Reports_SQLSERVER2008/Pages/Report.aspx? [clipped]

I have 2 questions wrt this issue and I hope someone will be able to shed some light on them.

  1. Why would the report viewer in the Report Manager render the report body in Chrome while the VS 2010 Report viewer control will not. [Leads me to believe that the Viewer can render in Chrome so it may be something I can change].
  2. Is it possible to extend the Report Viewer to at least render the body in Chrome.

All other browsers are fine. Its an ASP.Net 4.0 web form app using the VS 2010 version of the report viewer on SQL Server 2008 [Moving to 2008 R2 in a short while].

I'm at the stage also where it may be the case that the effort required to resolve this issue cannot be justified. I expect there may be other problems such as parameter selection etc. I'd like to hear your thoughts.

Thanks in advance,

Rgds,

Liam

Answer

Liam picture Liam · Jul 1, 2011

This is the fix that worked for us but is specific to our implementation.

We have the ReportViewer wrapped in a user control and this report viewer user control is used in 2 places in our Asp.Net app.

  1. On a basic Reports page
  2. On a webparts [Dashboard] page. Each web part contains a Report Viewer user control.

In the markup of the Report Viewer user control we set the height of the Report Viewer to a large number in Pixels. i.e. 1200px. The report body renders in Chrome on the reports page and on our dashboard page.

As the reports page displays 1 report at a time the height setting is not an issue

In the dashboard we already expose a personalisation property of the webpart containing the report path which allows us to load what ever report we require. We also expose a new property to store the hieght of the report in the personalisation framework and this in turn sets the height of the report viewer as required by the user.

Liam