Expression in Text property of 'Text3' can't be evaluated!

Stimulsoft Reports.NET discussion
Post Reply
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Expression in Text property of 'Text3' can't be evaluated!

Post by isoft »

Hi.

In my report I have a databand with data that has a column that represents some integer values. In ReportSummaryBand in a TextBox I use the Sum function with that column to summarize all the values. Actually this value is the total number of seconds, so I would like to show it in the HH:mm:ss format. So, in the GetValue event of that TextBox I used this code:

Dim ts As New TimeSpan(0,0,e.Value)
e.Value = ts.Hours & ":" & ts.Minutes & ":" & ts.Seconds

The problem is that I am getting the following error:
"Expression in Text property of 'Text3' can't be evaluated!"

It's as though the value is Null and not the result of my Sum function.

Please, can You help me.

Thank You.
Ivan
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Expression in Text property of 'Text3' can't be evaluated!

Post by Ivan »

Hello,

Please try to write following code in GetValue event:

Code: Select all

Dim ts As New TimeSpan(0, 0, Totals.Sum(Products, Products.UnitsInStock))
e.Value = ts.Hours & ":" & ts.Minutes & ":" & ts.Seconds
Thank you.
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Expression in Text property of 'Text3' can't be evaluated!

Post by isoft »

That worked great!

Thank You!
Post Reply