My web app has a report viewer control. Its layout was fine when viewed in IE7. But in FireFox browser, it shrinked both on width and height. Also in IE6, the report viewer control collapsed on height and the chart and report were not visible.

After breaking my head on figuring out the cause, found a fix:

a. Comment/remove the DOCTYPE line from the .aspx page.
b. On the Report Viewer control, change the AsyncRendering property value to "False". Default is set to "True"

Also, if you are getting a Report Viewer Scroll bar for long data, do the following to remove the Report Viewer scrollbar and use the entire webpage to scroll:

a. Remove the height attribute value if you have set any.
b. Set Width to 100%.

The above fixes made my Report Viewer Control to work on all browsers properly without any layout or scrolling issues and made my life.

References: http://arcanecode.wordpress.com/2007/11/29/sql-server-2005-reporting-services-reportviewer-control-and-ie7/

2 comments

  1. Anonymous // February 3, 2010 at 12:54 PM  

    Made my life too!!!!! Thank you so much :)

  2. StackeMedia // February 23, 2010 at 5:59 AM  

    Thanks for the tip. It was getting a little frustrating how the report would look differently in different browsers - now my report looks consistent.