簡體   English   中英

從 SSRS 報告中打開新 window 中的 SharePoint 文檔

[英]Opening a SharePoint document in a new window from an SSRS report

我有一個 SSRS 報告,我試圖讓用戶能夠通過單擊報告中的字段將 go 直接轉換為 SharePoint 文檔。 報告的源數據是 SQL 表,該表中的一個字段包含完整的 url。 If I select the Go To URL option and provide this field as the URL, it successfully opens the document, however, it does it in the same window. 如果單擊返回返回報告,則不再顯示報告。 因此,我想在新的 window 中打開它。 我已經查看了 stackoverflow 上發布的一堆解決方案,但似乎沒有一個通過字段名傳遞完整的 url。

我試過這個 ="javascript:void(window.open('Fields.SignedDocument:Value'))" 但它試圖 go 到這個不存在的網址: https://reportserver.abc.org/Reports/Fields.SignedDocument 。價值

有什么建議么?

您的表達式正在將您的字段添加為文本的一部分。

您希望表達式將您的值插入到 OPEN 字符串中。 使用雙引號關閉字符串,然后添加您的字段值和 append 字符串的 rest(做起來比說的容易)。

="javascript:void(window.open('" & Fields!SignedDocument.Value & "'))" .

這會將 Signed Document 字段的任何值放入字符串中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM