How can i make calculation ?
mohanaraj
600001
Dear all,
How can i make my won calculation for the summary band?
I having the field Duration this field having total duration of calls in seconds. Now i can able to total the duration column it returns total seconds but i want to display this field (Total seconds) in HH:MM:SS format. How it possible please advice.
Thanks in advance.
How can i make my won calculation for the summary band?
I having the field Duration this field having total duration of calls in seconds. Now i can able to total the duration column it returns total seconds but i want to display this field (Total seconds) in HH:MM:SS format. How it possible please advice.
Thanks in advance.
Comments
Sum your field using FastReport total, then convert the total value from seconds to hh:mm:ss format using a script function.
Dear Alex,
I sum the field by adding New total to the data window and in the total popup window i select the duration field and save. Then i place this total field in the summary band and right click then i choose format (time to 13:30) and saved.
Then i run the report the result displayed wrong.
This is right way? Please advice about " format using a script function."
[TimeSpan.FromSeconds(your_seconds_value)]
Dear Alex,
Thanks Its work fine.
Dear Alex,
In the above line of code not working when i gave the second as 141700.
It display wrongly as 1.15:21:40 instead of 39:21:40 please give suggestion.
and use this function in your Text object:
[SecondsToHHmmss(141700)]
Thank you.