如何在 iframe 中正确显示 SSRS 站点
我一直在从事一个项目,我需要在 iframe 中加载 ssrs 站点。 iframe 实际上使用的是 telerik spitter panel,但 DOM 在渲染时将其称为 iframe。我遇到的问题是,当引用 SSRS 站点时,它会在 iframe 中加载,但视图会平铺多次。在阅读中,我看到提到 SSRS 站点也使用 iframe,这会在加载到另一个 iframe 时导致问题。有谁知道这种情况的解决方案,或者您能给我指出正确的方向吗?本质上,我必须在 SSRS 网站周围包装一个 asp.net 包装器,因为它是较大网站的一部分,并且用户需要能够使用主导航导航到网站的这一部分。我需要避免弹出窗口或重定向,因为即使我从另一台服务器加载 ssrs,用户也需要获得他们位于同一站点的体验。随附的是平铺外观的屏幕截图。该网站很小,所以我没有使用母版页,而是直接在 asp.net 文档中加载。 任何提示或建议总是值得赞赏。谢谢
I have been working on a project where I need to load a ssrs site within an iframe. The iframe is acutally using the telerik spitter panels but the DOM refers to it as an iframe when rendered. The issue I am coming into is when referencing the SSRS site it loads wihtin the iframe but the view tiled multiple times over. In reading I have seen mention that the SSRS site also uses iframes which causes an issue when loaded into another iframe. Does anyone know of a solution for this type of scenario or can you point me in the right direction of where to look? In essence I have to wrap an asp.net wrapper around the SSRS site as it is a part of a larger site and users need to be able to navigate to this section of the site using the main navigation. I need to avoid pop-up windows or redirects as the user needs to get the expereince that they are in the same site even though I am loading ssrs from another server. Attached is a screen shot of what the tiling looks like. The site is small so I am not using masterpages it is loaded directly within an asp.net document.
Any tips or suggestions are always appreciated. Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据经验,我发现 SSRS 2008 的 IFRAME 和 FRAME 无法可靠工作(诚然,我也遇到了 IE6 问题)。
最终我决定使用 JavaScript/jQuery 在页面顶部创建一个 DIV,看起来像我主页的顶部导航栏,使用可以使用“ReportingServices”加载的行为 (IE) 或绑定 (FF)样式表例如
from experience I've found IFRAMEs and FRAMEs with SSRS 2008 did not work reliably (admittedly I had IE6 issues too).
Eventually I settled on using JavaScript/jQuery to create a DIV at the top of the page that looked like the top nav bar of my home page, using behaviors (IE) or bindings (FF) that can be loaded in using the "ReportingServices" style sheet e.g.