How to calculate difference between two text boxes

Stimulsoft Reports.NET discussion
Post Reply
fuhrj
Posts: 120
Joined: Wed Jun 11, 2008 12:51 pm
Location: Lancaster, Ohio

How to calculate difference between two text boxes

Post by fuhrj »

I have two text boxes in the footer group that I need to display the difference. I tried this, but it doesn't work:

{ System.Convert.ToDouble(Text23.Text) - System.Convert.ToDouble(Text.22.Text)}

Because of the way our database is set-up, I can't subtract using the Sum function:
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

How to calculate difference between two text boxes

Post by HighAley »

Hello.
fuhrj wrote:I have two text boxes in the footer group that I need to display the difference. I tried this, but it doesn't work:

{ System.Convert.ToDouble(Text23.Text) - System.Convert.ToDouble(Text.22.Text)}

Because of the way our database is set-up, I can't subtract using the Sum function:
You couldn't use Text23.Text in the footer. Please, send us your report template for analysis and explain what do you want to get more detailed.

Thank you.
Post Reply