テーブルとしてレポートを取得しました。各列にランダムな背景色を設定したいと思います。
このために、カスタム スクリプトを作成しました。
Public Function GetColor()
Dim intHighNumber AS Decimal = 255
Dim intLowNumber AS Decimal = 100
Dim NewColor AS String
Dim Red AS Decimal = Int((intHighNumber - intLowNumber + 1) * Rnd + intLowNumber)
Dim Green AS Decimal = Int((intHighNumber - intLowNumber + 1) * Rnd + intLowNumber)
Dim Blue AS Decimal = Int((intHighNumber - intLowNumber + 1) * Rnd + intLowNumber)
NewColor = "#" & Hex(Red) & Hex(Green) & Hex(Blue)
Return NewColor
End Function
最初のセルで、塗りつぶし式を次のように設定しました: =code.GetColor() ここまでは完璧に動作しましたが、今は列の残りの部分に同じ色が必要なので、式 "=Fields!myField .BackgroundColor」ですが、これは機能しません...
これを修正する方法がわかりません...
ご協力ありがとうございます:-)