Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 Open Link in New Window

Author  Topic 

cedartie
Starting Member

6 Posts

Posted - 2008-03-27 : 15:07:43
On my report I link to another report. I would like it so that when a user clicks on the link it will open the new report in another window and not navigate away from the current report. Has anyone had any luck with this?

jhermiz

3564 Posts

Posted - 2008-03-28 : 22:25:56
quote:
Originally posted by cedartie

On my report I link to another report. I would like it so that when a user clicks on the link it will open the new report in another window and not navigate away from the current report. Has anyone had any luck with this?



IN the properties there is a navigate url property that allows you to specify where you want the hyperlink to navigate to. Simply use Javascript here to open another window. Here is an example:


="javascript:void(window.open('http://localhost/reportserver?/testReport/ReportName&rs:Command=Render&Parameter1=" & Fields!Parameter1.Value & "','_blank'))"


Note the , _blank, that is much like opening a url with target=_blank.

Jon


Weblog -- [url]http://weblogs.sqlteam.com/jhermiz[/url]
Go to Top of Page
   

- Advertisement -