Ssrs 2008 r2 use 'Globals!ReportServerUrl in url

In a SSRS 2008 R2 report, I am able to have the users open a pdf document in a new window by using the following code in the action field of a textbox property:
My goal is not to hard code the url path. I would like the url path to be dynamic based upon which report server the ssrs report is running from.
Basically I would like to replace the with the Globals!ReportServerUrl variable that report server has a available.
I would like to replace the above expression with the following:
="javascript:void('Globals!ReportServerUrl/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf'))". However this expression does not work.
Thus can you tell me how to use the Globals!ReportServerUrl ssrs item with the javasctript window open statement so that the expression works correctly?

Hi Wendy,
If we are put Globals!ReportServerUrl expression in the “”, in Reporting Services, it will recognize it as a string data. So, it cannot display as report server URL.
Please refer to the following expression:
= Globals!ReportServerUrl & “/Pages/Resource.aspx?%2fboards%2fImages%2fHS.pdf”
If you have any questions, please feel free to let me know.
Alisa Tang
If you have any feedback on our support, please click
Alisa Tang
TechNet Community Support

Similar Messages

Maybe you are looking for