摘要: 使用RDLC做报表,为了满足将奇偶行不同背景颜色显示便于查看的需求。一般都是使用RowNumber函数进行背景颜色设置:设置单元格的背景颜色为:=IIf(RowNumber("timegroup_group") Mod 2=0,"Red","Transparent"),这种方法能满足连续型数据的报表,但是如果报表数据是离散的行号就会乱了,如图:兼容此种情况的完美解决办法是:1、首先定义一个自定义代码(此为网上提供的显示序号代码):Dim count As Integer public Function GroupCount() As 阅读全文
posted @ 2012-09-23 18:10 汉水银梭 阅读(3436) 评论(0) 推荐(0)
摘要: 代码:<table style="background-color: ; overflow: hidden; height:100%; width: 100%; vertical-align:top;"> <tr style=""> <td style="height: 100%;"> </td> <td> <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Nam 阅读全文
posted @ 2012-09-23 00:52 汉水银梭 阅读(4121) 评论(0) 推荐(1)