我有一个报告,它在如下列表中显示客户名称jsut:
ATK
FLD
FLD
DB
DB
DB
BL我已经将它们分组,但我想知道是否有方法可以让每个客户按颜色分开,例如白色然后灰色然后白色然后灰色等等。
现在我使用背景颜色,如下所示:
=IIF(RowNumber(Nothing) Mod 2,"Gainsboro","White")这只会使其他行变白或变灰。有没有办法让其他所有客户都变白或变灰?
发布于 2010-07-03 21:43:44
在报告的自定义代码中添加以下内容:
Public shared currentRowColour as string = "Red"
public function GetBackGroundColour(previousValue as string, currentValue as string) as string
if previousValue <> currentValue then
if currentRowColour = "Red" then
currentRowColour ="Orange"
else
currentRowColour ="Red"
end if
end if
return currentRowColour
end function然后编辑文本框(或行)的背景色表达式=Code.GetBackGroundColour(Previous(Fields!.Value),字段!.Value)
https://stackoverflow.com/questions/3160031
复制相似问题