Posted by: Charles Maitland | Monday 22 September, 2008

Reporting Services Reports in a new window

I know I am a bit rusty on the details of Reporting Services but today I was asked for a technique to open a link (Or sub-report) in a new window.

I was sure I had blogged this before but it would seem not so here it is :

The solution is to add a text box (Bound or not) and add to the “Navigation” properties the following JavaScript

="javascript:void(window.open(‘http://servername?%2freportserver%2fpathto%2freport&rs:Command=Render’))"

Replacing the url with the one to the relevant report.

I hope this helps the kit bag.

This was found on a number of blogs but here are a few

http://blogs.msdn.com/mab/archive/2007/05/17/how-to-create-a-hyperlink-in-reporting-services-that-opens-in-a-new-window.aspx

http://binaryworld.net/Main/CodeDetail.aspx?CodeId=4012

http://www.mssqltips.com/tip.asp?tip=1283

http://nimtug.org/blogs/simon/archive/2008/01/28/sql-server-reporting-services-opening-up-hyperlink-in-a-new-window.aspx

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: