I have a problem using expressions which include ReportItems values.
An example of the problem is the following:
I use this expression in order to set the value of a TextBox item called TextBox3 => = CDbl(ReportItems!TextBox1.Value) - CDbl(ReportItems!TextBox2.Value)
This works fine on report designer but returns the following error on MVC reportviewer:
An error occurred while processing the report item 'Textbox3' and The Value expression refers to the report item ‘ TextBox1’.Report item expressions can only refer to other report items within the same grouping scope or a containing grouping scope.Letters in the names of report items must use the correct case.
Obviously I am using the same report in report designer and reportviewer but the behavior is different.
Is this a known issue? How could I solve it?
I have solved temporarily it by copying the whole expressions of TextBox1 and TextBox2 in TextBox3 instead of refer its ReportItem Values but report performance is much slower than using ReportItems values.
Is this the only solution?
Thank you very much!