【HOW】如何經過URL給Reporting Services報表傳遞參數

【本地模式Reporting Services】sql

參見官方文檔:http://msdn.microsoft.com/en-us/library/ms154042.aspxwordpress

示例:http://servername/reportserver?/SampleReports/Employee%20Sales%20Summary&rs:Command=Render&rs:format=HTML4.0
 url

【SharePoint集成模式Reporting Services】orm

可經過以下兩種方式給Reporting Services報表經過URL傳遞參數:server

方法一:向RSViewerPage及Report Viewer Web Part傳遞參數文檔

示例:http://{SharePointServer}/_layouts/ReportServer/RSViewerPage.aspx?rv:RelativeReportUrl={ReportRelativeUrl}&rp:param1=param1_value&rp:param2=param2_valueget

方法二:向HTML Viewer Page傳遞參數it

示例:http://{SharePointServer}/_vti_bin/ReportServer?{ReportPositiveUrl}&rs:Command=Render&param1=param1_value&param2=param2_value
注意:如上方式中要傳遞報表URL的絕對路徑。form

另,關於Reporting Services預約義的參數名稱,參見:service

http://technet.microsoft.com/en-us/library/ms152835(v=sql.105).aspx
http://technet.microsoft.com/en-us/library/ms155395(v=sql.105).aspx
 
參考:http://techpunch.wordpress.com/2008/09/17/sql-server-reporting-services-url-parameters-in-sharepoint-integrated-mode/

相關文章
相關標籤/搜索