0

我的报告中有一个简单的列表,只有一行和一列(根据查询返回的项目数重复)。

我想做的是:在单元格内(在同一位置),为偶数行显示一个充满项目(文本框、图像等)的矩形,为奇数行显示另一个(具有不同项目)的矩形。

完成此操作的推荐方法是什么?

4

1 回答 1

1

I would use something like this for the Hidden property of the Rectangles:

=IIf(RowNumber(Nothing) Mod 2 = 0, true, false)

Use a different order for true / false for each of the two Rectangles to get them to alternate.

All the expression is doing is checking if a row number is even and setting the visibility based on this.

This is a pretty standard SSRS pattern which is typically used for alternating row colours, but it should work the same for showing/hiding items.

于 2013-08-08T15:27:08.057 回答