TomLenzmeier
TomLenzmeier

Reputation: 49

Opening a URL From SSRS

I am trying to open a URL in an SSRS report in a new window. I have used the following expression: ="javascript:void(window.open(escape("+ Fields!ImagePath.Value + "),'_blank'))". Nothing happens when I click on the field (Fields!ImagePath.Value). I have also tried removing the "escape" expression. I've also used the REPLACE function in my SQL statement to replace the "\" with %5C. On the occasion when it has more or less worked, the backslashes are dropped entirely.

Upvotes: 0

Views: 434

Answers (3)

TomLenzmeier
TomLenzmeier

Reputation: 49

This worked: ="javascript:void(window.open('" + Replace(Fields!ImagePath.Value, "\", "/") + "','_blank'));" The clue, for me, was swapping out the back-slash for a forward-slash.

Upvotes: 1

SMM
SMM

Reputation: 2235

Try this:

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

Upvotes: 0

SS_DBA
SS_DBA

Reputation: 2423

Try this. Open SSRS URL in New Window

="javascript:void(window.open('" & Fields!ImagePath.Value & "'))"

Upvotes: 0

Related Questions