admin管理员组文章数量:1428481
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. I have managed to get it to open in a new window using:
="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, i.e. (no toolbars, navigation buttons etc.), sized 600pt x 300pt and positioned in the centre of the screen.
Any help would be greatly appreciated!
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. I have managed to get it to open in a new window using:
="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, i.e. (no toolbars, navigation buttons etc.), sized 600pt x 300pt and positioned in the centre of the screen.
Any help would be greatly appreciated!
Share Improve this question edited Jun 23, 2014 at 10:23 AMouat asked Jun 23, 2014 at 9:51 AMouatAMouat 7652 gold badges16 silver badges29 bronze badges2 Answers
Reset to default 3I managed to solve my problem, I found this article on the MS Developer Network detailing the OPEN method: http://msdn.microsoft./en-us/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. Please note the & for string concatenation
- Report name SummaryDetail Parameter 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'))"
版权声明:本文标题:sql server - How do I create a minimal popup window in Reporting Services using JavaScript? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745525401a2661812.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论