使用SSRS表达式从URL打开新窗口/选项卡

时间:2017-09-19 01:54:26

标签: reporting-services expression sql-server-2014 ssrs-2008-r2

我看了几个解释其工作原理的网站,包括:

SQL Chick

Brian Knight

但到目前为止,我无法在新窗口中打开链接格式正确。这是我的表达方式,但不会打开一个新窗口:

="https://servicedesk.gooutdoorsvirginia.com/ImageProcessing/DocumentViewer.aspx?b=" & Fields!BatchID.Value & "&s=" & Fields!SeqNumber.Value & "&d=" & Cstr(Format(Fields!UploadDate.Value,"yyyy-MM-dd")) & "&r=0"

我尝试了几种变体来实现这一点,但没有任何效果。有人能帮助我做这项工作吗?

已测试但无效:

="javascript:void(window.open('https://servicedesk.gooutdoorsvirginia.com/ImageProcessing/DocumentViewer.aspx?b=" & Fields!BatchID.Value & "&s=" & Fields!SeqNumber.Value & "&d=" & Cstr(Format(Fields!UploadDate.Value,"yyyy-MM-dd")) & "&r=0','_blank'))"


="javascript:void(window.open('"+ https://servicedesk.gooutdoorsvirginia.com/ImageProcessing/DocumentViewer.aspx?b=" & Fields!BatchID.Value & "&s=" & Fields!SeqNumber.Value & "&d=" & Cstr(Format(Fields!UploadDate.Value,"yyyy-MM-dd")) & "&r=0" + "','_blank'))"

0 个答案:

没有答案