Unexpected scrollbar in Reporting Services

2019-09-09 02:43发布

I try to display reporting service report in iframe, and i have a interesting issue. Sometimes, but not always, there is some extra horizontal scrollbar. Solution have to work only in IE 9, 10, 11. I could not find any rule, why it happens.
Problem dissapears, when i hide header of report using rc:Toolbar=false. It occurs only in iframe.

Reporting Services 2008 R2

enter image description here

1条回答
我只想做你的唯一
2楼-- · 2019-09-09 03:10

There is a very simple solution. Issue occurs because parent document has html doctype and it is rendered by current IE engine. Default Reporting Services template has line like:

<meta http-equiv="X-UA-Compatible" content="IE=5">

I found information, that IE cannot render document inside iframe using different engine.

I deleted this line and changed doctype to "html". Problem disappeared

查看更多
登录 后发表回答