简体   繁体   中英

SSRS Report Parameters and Report Setup System

I've got a front-end application that pulls a report on top of SQL lives "Report Setup System" software that pulls the specific SSRS template/parameters that pass them to SQL procedure.

the report path specifies a given SSRS file, and no parameters are being passed to this file.

When I open the SSRS file it requires 4 parameters which it then passes to 3 sub/nested reports. The SQL behind the SSRS report file requires 4 parameters and doesn't allow the use of default data. however, i can't locate where these are being set in SSRS/Visual studio.

The parameters set up in the main report doesn't have any default data - these are hidden (they don't appear on the report), available values are None, default values are "no default value", and under advanced "automatically determine when to refresh" where are these being set?? Please advise where to look.

There are several ways you can pass values to report parameters. Assuming that you are using processing mode is 'remote', you have to look for something like following in your code, to see values being passed:

ReportParameter p = new ReportParameter("ShowDescriptions", checkBox1.Checked.ToString());
reportViewer.ServerReport.SetParameters(new ReportParameter[] { p });

Ref : (MSDN) https://msdn.microsoft.com/en-us/library/ms252178(v=vs.140).aspx

Another way to pass parameters to report is via URL
https://www.mssqltips.com/sqlservertip/1336/pass-parameters..

In a nutshell , you may need to look into the code , and not only into properties and settings of the report parameters, to actually ascertain what's going on : )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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