HOEKSTRA.CO.UK

How to create a Hyperlink in SSRS that opens a new Window 

 

By adding the a URL in a text field's Navigation properties in SSRS,  you can link to another website or web-app, or to another SSRS report. When the report is viewed online. the default behaviour is to open the URL it in the same window, which is mostly annoying.

 

Assume you have a data field that contains a URL, e.g.

 

=Fields!URL.Value

 

Here is how you would  normally add the URL to your report's "Jump to URL" field:

 

...right-click the item and select Properties and the choose the Navigation tab

 

Instead of putting the URL in the "Jump to URL" field (which will cause it to open in the same window), embed the URL in the following JavaScript:

 

="javascript:void(window.open('"+Fields!URL.Value+"','_blank'))"

 

 Take care with the inverted commas and parenthesis...they bite!