I have a report in C# of totals where I add the minutes that a worker who has worked a series of hours, but nevertheless in the expression if the worker has spent more than 24 hours working it adds the days. I don't want the days to show but the total hours. Here I leave the code of the Expression and the image to corroborate that the days come out.
and the expression code. Thanks for your attention.
TimeSpan.FromMinutes(Sum(CInt(Fields!suma_minutos.Value)))
According to what they told me, it appears like this:
Since rdlc is a bit limited, I would recommend adding a new field, for example
suma_minutos_str
, and initializing it as follows:In this way
suma_minutos_str
, you have a string in which the days multiplied by 24 are added to the "loose" hours, and the minutes and seconds are added. Then, it is that variable that you must use in the RDLC.