LinkTarget in config file
I want to use LinkTarget to open up links from ReportServer reports in a new window. This can be done by specifying rc:LinkTarget in the URL, but as i want to use it always, i would like to see this setting default for any report opened up in ReportServer in the browser. I tried to add the following code to the rsreportserver.config file below the <Render> <Extension Name="RPL"> section: <Configuration> <DeviceInfo> <LinkTarget>_blank</LinkTarget> </DeviceInfo> </Configuration> This is not working, what am i doing wrong?
February 18th, 2011 9:56pm

Hi Albert, Thanks for replying. The javascript option was something i used before untill it turned out that these links won't work in f.e. Excel or Pdf export file. Adding the node LinkTarget to rsreportserver.config and restarting RS did not do anything different. Even not when i use URL access. In SQL 2008 R2 the param to see if export is called would be my solution to the problem, but unfortunately i have to do it with SQL 2008 for now... Thanks, Mark
Free Windows Admin Tool Kit Click here and download it now
February 26th, 2011 5:40am

Hi, Base on your description, my understanding is that you want to open every links in new window, you try to modify the rsreportserver.config file to do this globally. But currently, in addition to the LinkTarget parameter in URL access, we can only just use javascript in "Go to URL" action to open link in new window, such as: ="javascript:void(window.open('http://servername?%2freportserver%2fpathto%2freport&rs:Command=Render'))" Actually, the LinkTarget device info in rsreportserver.config file you mentioned is a global setting, but it just used for URL access or code, not effective in all situations. If you add the LinkTarget node to rsreportserver.config file and restart Reporting Services service, when you use URL access, links in report will always be opened in new window no matter whether you ignore the LinkTarget parameter in URL. However, if you access to the Report Server or Report Manager (not URL access) directly, links of the report will still be opened in same window. If you still want to change the global behavior, unfortunately, the feature is not included in current release. I would suggest you submitting a wish at https://connect.microsoft.com/sqlserver. Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects. Thanks, Albert Ye
February 26th, 2011 6:41am

Hi Mark, JavaScript does not work in Excel and PDF files. To open links in new window in Excel and PDF, generally, we create two identical reports, one for the renders which cannot use JavaScript, such as Excel and PDF, another for the renders which can use JavaScript, such as HTML 4.0, MHTML, and so on. For your second question, supposing there are two reports A and B, you want to jump from A to B. Did you input the B URL to A "Jump to URL" action? In fact, the "URL access" here means that you need to access A through URL method, but not B. If you access A through URL with LinkTarget device info, every links of A will be opened in new window. Thanks, Albert Ye
Free Windows Admin Tool Kit Click here and download it now
March 5th, 2011 11:07pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics