如何消除 Iframe 内 SSRS 报告中不需要的滚动条并增加 Windows 显示尺寸?
我们运行一个带有内置 SSRS 报告的 Web 应用程序,这些报告通过 Iframe 集成。
用户在 Windows 7 中将显示百分比设置为 150%。 (控制面板 > 外观和个性化 > 显示)。
她正在 Firefox 中显示包含报告的网页,并且必须在 Iframe 内水平和垂直滚动才能查看整个报告。
我设法获得了一些屏幕截图
Firefox 中没有滚动条 在 Windows 7 中将显示百分比设置为 100% http://screencast.com/t/MGM3MmQzOTgt
IE8 中没有滚动条(显示 150 % 在 Windows 7 中设置) http://screencast.com/t/ZjE3NGVj
Firefox 中的滚动条 在 Windows 7 中将显示百分比设置为 150% http://screencast.com/t/ZmI1Yjkz
不知何故,Iframe 和 SSRS 似乎无法一起工作好吧,但是如何解决这个问题呢?
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/MGM3MmQzOTgtno scrollbars in IE8 (with display 150% set in Windows 7)
http://screencast.com/t/ZjE3NGVjscrollbars in Firefox
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下两个线程看起来特别相关:
SQL Server 2005 Reporting Services:报告是压缩
将 SSRS 报告格式化为不可见在 Firefox 中很糟糕
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
想添加这个如果它可以帮助某人。
我遇到了这个问题,需要删除工具栏和滚动条。我最终找到了实体,并使用另一个 css 文件设置它,然后添加 URL 开关来调用该 css 文件。
如果在 [[报表服务器]]\Program Files\Microsoft SQL Server\MSRS11.MSSQLSERVER\Reporting Services\ReportServer\Styles 文件夹中创建新的 css 文件并将其命名为 hideToolbar.css。
然后编辑该文件以包含
然后您可以在 URL 中使用它,如下例所示:
http://[[report服务器名称或 IP 地址]]/ReportServer/Pages/ReportViewer.aspx?%2fSharedReports%2f<>&rs:Command=Render&rc:stylesheet=hideToolBar
确保您使用的是 " ReportServer”与 URL 中的“Reports”进行对比以获得所需的结果。
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
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.