Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to open a url in a new window using SSRS 2008 reportviewer control

Status
Not open for further replies.

griffster10

IS-IT--Management
Mar 8, 2012
3
GB

I need to open a web page in a new window as a link from a cell in an SSRS 2008 report. I found a reference on the web to say the best way to do this is to put in something like:

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

where the Fields!ReferURL.value is the page you want to navigate to in another window.

This works perfectly in report manager once the report has been deployed.

However, when we run the report from within a web page using the reportviewer control, the link does nothing at all.

Does anyone know how to get round this please?
 
How is the reportviewer control being called? asp.net app? sharepoint?


Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Think I need to clarify this really. We are pointing to the report viewer control that is running on the reporting server application and not using the report viewer control within our own intranet application (asp.net).

The reason we do it this way is because when we tried to use the report viewer control from within our asp.net application, some users were not able to use the printing feature.
 
So you are using an iframe to load up the view of the report from within the report manager right?

In that case I'm surprised the click through is not working as all you are really doing is calling up the report manager into the iframe. the only thing I can think of is that you might have some other client side code running which is intercepting th click event on the iframe

If not, can you clarify what you mean by "reportviewer control on the report server"?

AFAIK, you either reference the report in the reportmanager app or do so via a reportviewer control in your asp.net app

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top