老师,以下统计在表中最后一行,但是对某列排序后,这统计就消失了,如何让它一直存在,谢谢。
Dim t As Table = Tables("RMDemand")
Dim g As Subtotalgroup
t.SubtotalGroups.Clear()
t.GroupAboveData = False
t.TreeVisible = False
t.SpillNode = True
g = New Subtotalgroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "*"
g.TotalOn = "ProductionDemandQty,WIP,WorkshopStock,RmStock,OutsideStock,XYStock,TotalStock,WIPmissing,TotalFC,PR,Purchasing"
g.Caption = "总计"
t.SubtotalGroups.Add(g)
t.Subtotal()