IE 中的 ReportViewer 滚动问题
我已在本地计算机上使用 reportViewer 部署了一份报告。 这是一个很宽的报告,因此需要在报告底部有一个水平滚动条,但垂直方向适合。这在 FF 中很好,但是 IE 也用垂直滚动条渲染它,无论我做什么我都无法摆脱它! 这是IE的问题吗? 我可以不只拥有一个水平滚动条吗?或者即使垂直滚动条几乎没有任何作用,IE 是否也坚持拥有两者?
谢谢
I've deployed a report using reportViewer on my local machine.
It's a wide report so requires a horizontal scroll bar across the bottom of the report but fits fine vertically. This is fine in FF, however IE renders it with the vertical scrollbar as well and no matter what I do I cant get rid of it!
Is this a problem with IE?
Can I not just have a horizontal scrollbar or does IE insist on having both even if the vertical scrollbar does next to nothing?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只是一个想法,但是 ReportViewer 是否配置为异步渲染?
此链接有一些详细信息: http://msdn.microsoft.com/en- us/library/ms252090.aspx
如果 AsyncRendering=true,您的报表将在 IFRAME 内呈现。它可能会默认为特定高度,直到它呈现,而 IE 在事后无法识别该高度。
尝试将其设置为 false - 如果这是问题所在并且异步渲染不适合您,则可能有一种方法可以以编程方式将 ReportViewer 的初始高度设置得足够小以避免出现这些滚动条。
IE 绝对只允许一种类型的滚动条(至少 IE8 允许) - 您可以通过调整 Google 主页上的窗口大小并使窗口又高又窄来尝试它。
Just a thought, but is the ReportViewer configured for asynchronous rendering?
This link has some details: http://msdn.microsoft.com/en-us/library/ms252090.aspx
With AsyncRendering=true, your report will render inside an IFRAME. It may default to a particular height until it renders and IE isn't recognizing that after the fact.
Try setting it to false - if that's the issue and asynchronous rendering isn't an option for you, there may be a way to programmatically set the initial height of the ReportViewer small enough to avoid those scrollbars.
IE definitely allows just one type of scrollbar (at least IE8 does) - you can try it by resizing the window on the Google homepage and making the window tall but narrow.
如果您使用 IE 11 Edge,则会遇到此问题。
If you use IE 11 edge you have this problem.