Any ideas? This is such a simple thing..I wonder how MS misses this?
One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"
Note: be careful with single and double quotes in the expression - especially if you use RDL expressions to concatenate static information with dynamic information from e.g. a field value.
-- Robert
|||The reason it does not work is the built in rendering extension puts "_Top" in the <a href> tag that it renders. Somehow, we need to change that '_Top" to "_blank" while rendering.Is there any way you know of?
Thanks.|||
You can do this by using URL access to render the report and specifying the rc:LinkTarget parameter. See: http://msdn2.microsoft.com/en-us/library/ms155395.aspx
-- Robert
|||Hi, Robert,
All of my users are using http://machine/reports or http://machine/reportserver with IE. Is there anyway to change the default value of LinkTarget at navigation link from _top to _blank in .config file to make this behavior by default?
I tried to modify rsreportserver.config without luck.
I also noticed that the default behavior of SSRS 2000 does allow one to open new window at navigation link (right click -> Open new window). But this has been removed from SSRS 2005 (well, at least its default behavior is not to open a new window).
Thanks.
Kong
|||
I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any frame names.
here is my code sample:
="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"
Because or report server runs in a framed wrapper the window.open method cannot work either.
any suggestions would be helpful.
Thanks.
|||
I have seen this answer "rc:LinkTarget" from multiple sources, but I cannot get it to work. I cannot get the Target attribute to change from _top to _blank or any other frame names.
here is my code sample:
="http://myServersName/ReportServer?/Finance/quickTest&rc:LinkTarget=_blank"
Because our report server runs in a framed wrapper the javascript clientside window.open method cannot work either.
any suggestions would be helpful.
Thanks.
|||
One way of doing this is to use an expression like this for the hyperlink action (Note - I had to insert a blank between 'java' and 'script' otherwise the text would not be visible in the posting):
="java script:void(window.open('http://www.microsoft.com','_blank'))"
It's perfect but I coudn't figure out how to do it with a field value like:
"https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf"
Could you help me Robert ?
|||Try this:
="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"
-- Robert
|||
Try this:
="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank'))"
-- Robert
Thank you Robert !
It worked like a charm, I'm using SQL 2005 for about 2 months, and it's really difficulty to find good information.
I've bought 2 books from the "dummies" series, but this kind of info is not there :(
Thank you again !
RGDS
Norberto
ps-would you know also how to complete this command, hiding all the bars from the browser (address bar, toolbar, etc...)
|||Never mind, just found it
="java script:void(window.open('https://www.mysite.com/pdf/" & Fields!SurveyReportNo.Value & ".pdf','_blank','toolbar=false'))"
Don't know why, i was using "menu=no"
Tks again
|||
hello :
On a hypertext link in a report, how to open the link in a new window IE. ?
Thank's
No comments:
Post a Comment