sum two string field

Stimulsoft Reports.NET discussion
Post Reply
ronak
Posts: 5
Joined: Sat Apr 23, 2011 11:14 am

sum two string field

Post by ronak »

hi i have a time field in string format now i want to sum time at end of my report
i have a string field like this data 05:30 16:10
now i want to sum these clock field
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

sum two string field

Post by HighAley »

Hello.
ronak wrote:hi i have a time field in string format now i want to sum time at end of my report
i have a string field like this data 05:30 16:10
now i want to sum these clock field
Please try to use next expression

Code: Select all

{TimeSpan.Parse(YourField1) + TimeSpan.Parse(YourField2)}
Thank you.
ronak
Posts: 5
Joined: Sat Apr 23, 2011 11:14 am

sum two string field

Post by ronak »

thanks
i dont have a two field i have a data table that contain dynamic field of time and after that in a footer band i want to sum a fields that contain a time
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

sum two string field

Post by HighAley »

Hello.
ronak wrote:thanks
i dont have a two field i have a data table that contain dynamic field of time and after that in a footer band i want to sum a fields that contain a time
In this case you can create variable of timespan type and accumulate time in it. Please see attached report.

Thank you.
Attachments
1253.TimeSum.zip
(2.08 KiB) Downloaded 351 times
Post Reply