最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

sql server - How do I create a minimal popup window in Reporting Services using JavaScript? - Stack Overflow

programmeradmin1浏览0评论

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 badges
Add a ment  | 

2 Answers 2

Reset to default 3

I 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'))"

发布评论

评论列表(0)

  1. 暂无评论