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/
Report Viewer Control in IE6, IE7, FireFox
Posted by Techie Cocktail | 12:26 PM | ASP.Net, SQL Server Reporting Services | 2 comments »
Subscribe to:
Post Comments (Atom)
Made my life too!!!!! Thank you so much :)
Thanks for the tip. It was getting a little frustrating how the report would look differently in different browsers - now my report looks consistent.