Friday, March 9, 2012

how to use GetReportParameters for a parameter with dependencies?

try to develop a customized report with personal UI.

can use GetReportParameters to get all parameters. but can not find a way to get the paramter with dependencies.

there is a perference from http://www.odetocode.com/Articles/123.aspx. I made my own code, but it never works.

any helps? thanks.

--

Dim vs() As ParameterValue = Nothing

vs(0) = New ParameterValue

vs(0).Name = pName ' dependency' name

vs(0).Value = pValue ' dependency' value

Dim ps() As ReportParameter = rs.GetReportParameters(report, Nothing, True, vs, Nothing)

When calling GetParameters you want to pass in the parameter values you have. If a dependency is satisfied by that set then the return value should have the values for the dependent parameter populated.

No comments:

Post a Comment