User1711366110 posted
Since the ReportParameter.ReportParameter accepts only string values while rendering I am getting System.InvalidCastException.What is the workaround for this issue
According to this case, you can pass the strings value instead of Boolean values like "1" for "true" , "0" for "false"
Then in the Report Data pane, right-click the dataset, click Dataset Properties, and then click
Parameters.
-
In the column Parameter Name, find the name of the query parameter. Parameter names are automatically populated based on the query.
- In Parameter Value, click fx button then type in an expression that evaluates to the Boolean value to pass to the query parameter like below :
=IIF(Parameters!yourReportParametername.value=true, "1", "0" )
- Click OK