Hello Edward,
I did the following:
I’m write the expression such as expression you wrote and then I’m define a parameter named: % @name %
Then I do the following in my code:
report.DataSources["Employee"].Parameters["% name %"].ParameterValue = "%" + txtName.Text.ToString() + "%";
but I get the following Error.
Incorrect syntax near '%'.
Must declare the scalar variable "@name".
Statement(s) could not be prepared.
In Line:
Line 22: report.DataSources["Employee"].Parameters["% @name %"].ParameterValue = "%" + txtName.Text.ToString() + "%";
Line 23: StiWebViewer1.Report = report;
Please help me to fix the error.
Thank you.