Reputation: 1
I have a table of urls which represent saved PDFS and are displayed in an SSRS report. I made this field clickable and the action opens the pdf in the same window which allows me to save the pdf to my desktop. But when I hit the windows back button I have to reenter the parameter.
I prefer to click on the field and it open in a new window. In fact, I would love to be able to click one button and open all the urls in a new window or at least more than one.
I can't seem to get the syntax right to even open 1 url in a new window.
Help! What is wrong with my syntax?
="javascript:void(window.open('Fields!Standard_view_PDF.Value & "', '_blank'))"
Upvotes: 0
Views: 426
Reputation: 2951
You need to tell the link that it is a file to open.
Try this instead.
="javascript:void(window.open('file:"+Fields!Standard_view_PDF.Value+"','_blank'))"
Upvotes: 0