Hi,
I am new to report builder. I need to get the parameter value in the custom code to do some calculations. The parameter is defined as report parameter manually. I have no problem to read it from the report expression. But when I try to read it in custom code, I got following error:
"Failed to load expression host assembly. Details: The expression that references the parameter 'TotalSectorActiveMoneyMonth1' does not exist in the Parameters collection. Letters in the names of parameters must use the correct case. (rsErrorLoadingExprHostAssembly)"
The parameter exists and the spelling is correct. Here is the code I called in Custom Code which throws the above error:
Dim t as double = GetParameterValues(Report.Parameters!TotalSectorActiveMoneyMonth1)
It works well while I call the parameter from report expression:
=code.GetParameterValues(Parameters!TotalSectorActiveMoneyMonth1)
Have anyone experienced the similar problem? Any idea how I can make it work in custom code? I will highly appreciate any suggetion or work around.
Thanks,
Jenny