楼主你好:
现在调查的情况是,不能在主报表中显示子报表中字段 Sum,只能在子报表的 GroupFooter 中计算,代码如下:
- TimeSpan totaltime = new TimeSpan(0,0,0);
- public void Detail_Format()
- {
- int Hour = Convert.ToInt32(this.TextBox5.Text.Substring(0, 2));
- int Minute = Convert.ToInt32(this.TextBox5.Text.Substring(3, 2));
- int Second = Convert.ToInt32(this.TextBox5.Text.Substring(6, 2));
- TimeSpan pertime = new TimeSpan(Hour, Minute, Second);
-
- totaltime += pertime;
- this.TextBox4.Text = totaltime.ToString();
- }
复制代码 效果图:
|