开发者

How to get rid of unwanted scrollbars in an SSRS reports within an Iframe and increased Windows display size?

We run an web-app with built-in SSRS reports, which are integrated via an Iframe.

A user has set her display percentage to 150% in Windows 7. (Control Panel > Appearance and Personalization > Display).

She is displaying the webpage with the report in Firefox and she has to scroll horizontally and vertically within the Iframe to view the whole report.

I managed to get some screenshots

  • no scrollbars in Firefox with a display percentage set to 100% set in Windows 7 http://screencast.com/t/MGM3MmQzOTgt

  • no scrollbars in IE8 (with display 150% set in Windows 7) http://screencast.com/t/ZjE3NGVj

  • scrollbars in Fi开发者_StackOverflow中文版refox with a display percentage set to 150% set in Windows 7 http://screencast.com/t/ZmI1Yjkz

Somehow Iframe and SSRS don't seem to work together well, but how to solve this?


The following two threads look particularly relevant:

SQL Server 2005 Reporting Services: Reports are Compressed

Formatting an SSRS report to not look terrible in Firefox


Wanted to add this if it may help someone.

I had this issue, and needed to remove toolbar and scroll bars. I ended up finding the entity, and setting it with another css file, then adding URL switches to call that css file.

If you create a new css file in the [[report server]]\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\Styles folder and name it hideToolbar.css.

Then edit that file to include

    .ToolBarButtonsCell{display: none;}
    html{overflow:hidden;}

Then you can just use it in your URL like this example:

http://[[report server name or IP address]]/ReportServer/Pages/ReportViewer.aspx?%2fSharedReports%2f<>&rs:Command=Render&rc:stylesheet=hideToolBar

Make sure you're useing "ReportServer" versus "Reports" in the URL to get the desired result.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜