简体   繁体   English

在URL中传递参数时未呈现SSRS报告

[英]SSRS report not rendering while passing parameter in URL

I am very new to SSRS. 我对SSRS非常陌生。 I am trying to invoke an ssrs report using URL parameters. 我正在尝试使用URL参数调用ssrs报告。 It is not heklping.here is the URL I am using http://xyzabc/ReportServer2/Pages/ReportViewer.aspx?%2fReportName%2fTimesheetBCC&rs:Command=Render&QueryGNAME= 'abc'&QueryCentreName='xyz'&QueryWeekType='Week'&QuerySiteLocation='Off'&QuerySUBBU='All' 这不是问题所在。这是我正在使用的URL http://xyzabc/ReportServer2/Pages/ReportViewer.aspx?%2fReportName%2fTimesheetBCC&rs:Command = Render&QueryGNAME = 'abc'&QueryCentreName ='xyz'&QueryWeekType ='Week'&QuerySiteLocation = '关闭'&QuerySUBBU ='全部'

This is not loading(Rendering) the report. 这不是加载(渲染)报告。 It is still prompting for the Parameters. 它仍然提示输入参数。 If I select manually, it works. 如果我手动选择,它将起作用。

I am stuck for last two days. 我被困了两天。 A little help will be greatly appreciated. 一点帮助将不胜感激。

You do not need those single quotes in the url for the parameter values and there is no output format specified. 您不需要在URL中使用单引号作为参数值,并且没有指定输出格式。 Clear Session is not there either which prevents caching of parameters. 清除会话也不存在,这会阻止参数的缓存。 If the report is in a folder in SSRS then replace SSRS_Folder in link below with the name of the folder so it can find the report.Try this: 如果报告位于SSRS的文件夹中,请使用以下文件夹名称替换下面链接中的SSRS_Folder,以便可以找到报告。请尝试以下操作:

http://xyzabc/ReportServer2/Pages/ReportViewer.aspx?%2fSSRS_Folder%2fReportName%2fTimesheetBCC&QueryGNAME=abc&QueryCentreName=xyz&QueryWeekType=Week&QuerySiteLocation=Off&QuerySUBBU=All&rs:Command=Render&rs:Format=PDF&rs:ClearSession=true http://xyzabc/ReportServer2/Pages/ReportViewer.aspx?%2fSSRS_Folder%2fReportName%2fTimesheetBCC&QueryGNAME = abc&QueryCentreName = xyz&QueryWeekType = Week&QuerySiteLocation = Off&QuerySUBBU = All&rs:Command = Render&rs:Format = PDF&rs:ClearSession

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM