簡體   English   中英

URL 中的 SSRS 傳遞日期參數

[英]SSRS Pass Date Parameter in URL

我已經嘗試解決這個問題有一段時間了,但似乎無法讓它發揮作用。 我正在嘗試將 2 個日期參數傳遞給 SSRS 報告。 我正在使用 SSRS 2016。讓您獲得報告的鏈接是http://ServerName/Reports/report/SomeFolder/ReportName我嘗試遵循一致同意的方法,即簡單地附加 &StartDt=01/01/2020&EndDt=01/ 31/2020 和其他組合並在下面列出。 http://ServerName/Reports/report/SomeFolder/ReportName&StartDt=01/01/2020&EndDt=01/31/2020 http://ServerName/Reports/report/SomeFolder/ReportName&StartDt=01-01-2020&EndDt=01-31-2020 http://ServerName/Reports/report/SomeFolder/ReportName&rs:Command=Render&StartDt=01/01/2020&EndDt=01/31/2020 http://ServerName/Reports/report/SomeFolder/ReportName&rs:Command=Render&StartDt=01-01 -2020&EndDt=01-31-2020在所有情況下,我都會得到幾乎相同的錯誤,唯一的區別是我添加日期的方式。 The path of the item '/SomeFolder/ReportName&StartDt=01-01-2020' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. (rsInvalidItemPath) The path of the item '/SomeFolder/ReportName&StartDt=01-01-2020' is not valid. The full path must be less than 260 characters long; other restrictions apply. If the report server is in native mode, the path must start with slash. (rsInvalidItemPath)我已經確認參數匹配 StartDt 和 EndDt 在我的報告中完全以這種方式出現,只是為了 SAG 我什至使提示匹配並且它們是不可為空的日期/時間字段。 沒有可用值或默認值。 如果沒有選擇任何內容,它會有日歷圖標來選擇一個日期,一切都運行得很完美。

我實際上認為我在 .Net 的解釋中看到了一些內容,但結果是下面的鏈接。 像往常一樣,我從不將我的答案標記為正確,而是留給下一個人。

http://ServerName/ReportServer/Pages/ReportViewer.aspx?%2FFolderName%2FReportName&rc:showbackbutton=True&StartDt=01/01/2020&EndDt=01/31/2020

暫無
暫無

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

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