I recently tested some changes I made to a ReportViewer in Internet Explorer 9 and it appeared good, took up the whole width of the page as I wanted.
When I uploaded it to the production server and tested it there, the text was squashed to the left half of the page, with the columns being too narrow. After trying a lot of things and not finding any info on the Internet, I discovered the solution.
Solution: I switched to Compatibility View in my browser (Tools menu in IE 9, select Compatibility View), and refreshed the report, it again looked normal.
A shortcoming of manually switching your own browser into compatibility view to correct the rendering issue is that all your other users will need to do the same thing to get a proper display. You might try forcing the mode by implementing the meta tag : X-UA-Compatible
I'd consider this more of a short term stop-gap solution though and i'd look for a way to get things rendering correctly without
the need to adjust compatbility settings.
Thanks for the info. I used the info in the msdn article you mentioned and now the ReportViewer displays as it should. What I did was add the following line in the head of the web page:
Don't bother. I've got a VS2010 project using the Version 10 Report Viewer and it doesn't display the report in IE8 without compatibility mode turned on; though the user could still export the report, they just couldn't see it with in the viewer.
Scott Nation
Member
10 Points
8 Posts
ReportViewer not displaying correctly in IE9
Jan 14, 2012 07:27 PM|LINK
I recently tested some changes I made to a ReportViewer in Internet Explorer 9 and it appeared good, took up the whole width of the page as I wanted.
When I uploaded it to the production server and tested it there, the text was squashed to the left half of the page, with the columns being too narrow. After trying a lot of things and not finding any info on the Internet, I discovered the solution.
Solution: I switched to Compatibility View in my browser (Tools menu in IE 9, select Compatibility View), and refreshed the report, it again looked normal.
IE Compatibility View reportviewer
mbanavige
All-Star
134971 Points
15423 Posts
ASPInsiders
Moderator
MVP
Re: ReportViewer not displaying correctly in IE9
Jan 15, 2012 02:16 PM|LINK
When you first tested and it appeared to look good, ie may have automagically switched into compatibility mode. it does this if it thinks the site is an intrAnet site. http://stackoverflow.com/questions/3726357/why-does-ie9-switch-to-compatibility-mode-on-my-website. Then later when you published to production, ie may have stopped detecting the site as intrAnet.
A shortcoming of manually switching your own browser into compatibility view to correct the rendering issue is that all your other users will need to do the same thing to get a proper display. You might try forcing the mode by implementing the meta tag : X-UA-Compatible
http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx
http://blogs.msdn.com/b/askie/archive/2009/03/23/understanding-compatibility-modes-in-internet-explorer-8.aspx
I'd consider this more of a short term stop-gap solution though and i'd look for a way to get things rendering correctly without the need to adjust compatbility settings.
IE Compatibility View reportviewer
Scott Nation
Member
10 Points
8 Posts
Re: ReportViewer not displaying correctly in IE9
Jan 25, 2012 01:11 AM|LINK
Thanks for the info. I used the info in the msdn article you mentioned and now the ReportViewer displays as it should. What I did was add the following line in the head of the web page:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
Eventually I'll switch to ReportViewer 10 from 9 to see if that works better, but until I do this seems to work.
IE Compatibility View reportviewer
frank_00001
Member
3 Points
5 Posts
Re: ReportViewer not displaying correctly in IE9
Feb 02, 2012 04:30 PM|LINK
Don't bother. I've got a VS2010 project using the Version 10 Report Viewer and it doesn't display the report in IE8 without compatibility mode turned on; though the user could still export the report, they just couldn't see it with in the viewer.
I just added this in the web.config...
<httpProtocol><customHeaders><add name="X-UA-Compatible"value="IE=EmulateIE7"/></customHeaders></httpProtocol>