We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Expressions with ReportItems works fine in Report Designer but gives error on MVC reportviewer

Thread ID:

Created:

Updated:

Platform:

Replies:

127156 Oct 30,2016 07:41 AM Nov 1,2016 03:20 AM ASP.NET MVC 1
loading
Tags: ReportViewer
Juan José Carmona Yebes
Asked On October 30, 2016 07:41 AM

Hello,

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!


Yuvaraj Devarajan [Syncfusion]
Replied On November 1, 2016 03:20 AM

Hi Juan, 
 
Thanks for contacting Syncfusion support. 
 
We were unable to reproduce the mentioned issue at our end. We have prepared and tested the Report using the shared expression and it’s working fine at our end as shown in below shared screenshot. So can you please share the issue reproducible Report definition file and also confirm your Essential studio build version referred in your application with us to validate the mentioned issue. 
 
Output: 
 
 
We have prepared the sample and it can be downloaded from, 
 
Regards, 
Yuvaraj D. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;