SSRS Include Javascript to a Textbox:

I was searching about adding a link to an external file to my report, then I think to add a JavaScript to It.

Here are the steps to add a simple JavaScript to an URL in a Textbox on your report:

Select your textbox and go to Properties:

Select Action:

And go to expression (Fx) :

Add this expression :

“javascript:void(window.open(‘file://YourServer/YourFolder/yourFile’,’_blank’))”

As a JavaScript function, you can add options like target _Black …

And when your report is deployed, you can click on your Textbox :

Advertisements
This entry was posted in SSRS and tagged , , , , , , , , , , , , , , , . Bookmark the permalink.

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