1.RowNumber("group_name")是按行每个分组重新1,2,3这样来显示的,如果需要按每个分组来显示1,并且递增,则需要通过自定义代码来控制,在报表-属性-代码里插入
Dim count As Integer Dim GroupName As String Public Function GroupCount(name As String) As String If (GroupName = "") Then count = 1 GroupName = name GroupCount = count Exit Function End If If (GroupName = name) Then count = count GroupCount = count Else GroupName = name count = count + 1 GroupCount = count End If End Function
然后再报表单元格-表达式里通过来调用
=Code.GroupCount(Fields!FieldName.Value)