ASP.NET报表表达式给出错误

时间:2014-11-24 07:35:19

标签: asp.net .net reportviewer

以下表达式给出了错误。我尝试将时间跨度格式化为

hh:mm:ss

enter image description here

enter image description here

1 个答案:

答案 0 :(得分:0)

来自this thread

对于Matrix:

=System.String.Format("{0:00}:{1:00}", System.TimeSpan.FromTicks(Sum(Fields!duurHHMM.Value)).Hours,System.TimeSpan.FromTicks(Sum(Fields!duurHHMM.Value)).Minutes) 

图表:

=System.TimeSpan.FromTicks(Sum(Fields!duurHHMM.Value)).TotalMinutes