简体   繁体   English

如何使用 JavaScript 在 Reporting Services 中创建最小弹出窗口 window?

[英]How do I create a minimal popup window in Reporting Services using JavaScript?

I am trying to create a "popup" window from a report in reporting services which will display an expanded view of a chart that I have on my dashboard.我正在尝试从报告服务中的报告创建一个“弹出窗口”window,它将显示我仪表板上的图表的扩展视图。 I have managed to get it to open in a new window using:我设法让它在新的 window 中打开,使用:

="javascript.void(window.open('http://My_Server/ReportServer/Pages/ReportViewer.aspx?...&rs:Command=Render','_blank'))"

What I am trying to achieve is a minimal window with as little as possible visible, ie (no toolbars, navigation buttons etc.), sized 600pt x 300pt and positioned in the centre of the screen.我想要实现的是最小的 window,尽可能少可见,即(没有工具栏、导航按钮等),大小为 600pt x 300pt,位于屏幕中央。

Any help would be greatly appreciated!任何帮助将不胜感激!

I managed to solve my problem, I found this article on the MS Developer Network detailing the OPEN method: http://msdn.microsoft.com/en-us/library/ms536651%28VS.85%29.aspx 我设法解决了问题,我在MS Developer Network上找到了这篇文章,详细介绍了OPEN方法: http : //msdn.microsoft.com/zh-cn/library/ms536651%28VS.85%29.aspx

So my final code looks like this: 所以我的最终代码如下所示:

="javascript:void(window.open('http://myServer/ReportServer/Pages/ReportViewer.aspx?...&rs:Command=Render&rc:Toolbar=false', null, 'width=795, height=490, status=no, toolbar=no, menubar=no, location=no'))"

I think its very important to be able to pass a parameter in the URL. Here is an example.我认为能够在 URL 中传递参数非常重要。这是一个示例。 Please note the & for string concatenation请注意用于字符串连接的 &

  • Report name SummaryDetail Parameter SummaryId报告名称SummaryDetail参数SummaryId

="javascript:void(window.open('http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fSummaryDetail&SummaryId=" & Fields.Id:Value & "&rs:Command=Render&rc,Toolbar=false', null, 'width=795, height=490, status=no, toolbar=no, menubar=no, location=no'))" ="javascript:void(window.open('http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fSummaryDetail&SummaryId=" & Fields.Id:Value & "&rs:Command=Render&rc,Toolbar=false', null, 'width=795, height=490, status=no, toolbar=no, menubar=no, location=no'))"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何创建可拖动且可调整大小的JavaScript弹出窗口? - How do I create a draggable and resizable JavaScript popup window? 在Google Chrome浏览器中,如何使用父窗口中的javascript将现有的弹出窗口置于最前面? - In Google Chrome, how do I bring an existing popup window to the front using javascript from the parent window? 如何让我以最小的 Javascript 在所有按钮上弹出显示 - How do I make me popup display on all of buttons with minimal Javascript 如何使用Javascript在页面顶部创建另一个窗口? - How do I create another window on top of a page using Javascript? 如何使用外部JavaScript文件通过HyperLink控件在ASP.Net中打开弹出窗口? - How do I open a popup window in ASP.Net with HyperLink control using external javascript file? 在做oauth时如何创建弹出窗口? - How do I create a popup window when doing oauth? 如何使用javascript中for循环的值填充弹出窗口? - How do I populate a popup window with values from a for loop in javascript? 如何让 JavaScript 在当前监视器上打开一个弹出窗口 - How do I get JavaScript to open a popup window on the current monitor 如何在Birt报表中使用javascript设置属性 - How do I set a property using javascript In Birt Reporting 如何使用window.open创建一个不确定延迟的弹出窗口(对于Social Auth)而没有弹出窗口阻止程序阻止它 - How do I create an indeterminately delayed popup (for Social Auth) with window.open without a popup blocker stopping it
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM