[英]How to open a URL in a new window in SSRS report?
I want to open a PDF file in a new window by clicking on its URL in SSRS report. 我想通过在SSRS报告中单击其URL在新窗口中打开PDF文件。 I heard that it is possible with JavaScript.
我听说JavaScript可以实现。 So I tried with
="javascript:void window.open('yoururl&rs:Command=Render"')"
in the SSRS expression. It is working only for https and http. 所以我尝试在SSRS表达式中使用
="javascript:void window.open('yoururl&rs:Command=Render"')"
。它仅适用于https和http。
But the URL which I want to open is as follows. 但是我想打开的URL如下。
\\\\\\ourcompanyname.local\\systems\\documents\\abcd.pdf
. \\\\\\ourcompanyname.local\\systems\\documents\\abcd.pdf
。
As a database developer, I will be very happy if it is possible with SQL script. 作为数据库开发人员,如果使用SQL脚本,我将非常高兴。 If not please help me with some JavaScript.
如果没有,请帮我一些JavaScript。
you can use target="_blank" 您可以使用target =“ _ blank”
<a href="http://your path" target="_blank">test</a>
or 要么
window.open( 'http://path');
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.