首页 > 其他 > 详细

RDLC分组后序号,从1开始

时间:2017-11-04 12:34:40      阅读:365      评论:0      收藏:0      [点我收藏+]

打开报表,在菜单报表(REPORT)点报表属性

在code下添加如下代码:(不用管语言是vb的)

Dim count As Integer

Dim GroupName As String

Public Function GroupCount(name As String) As Integer

 

If (GroupName = "") Then

count = 1

GroupName = name

GroupCount = count

Exit Function

End If

 

If (GroupName = name) Then

count = count + 1

Else

GroupName = name

count = 1

End If

 

GroupCount = count

 

End Function

再在行号的表达式写为:

=Code.GroupCount(“分组名”);

RDLC分组后序号,从1开始

原文:http://www.cnblogs.com/sheven/p/7782387.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!