I\'ve got a report as a table. I would like to set for each column a random backgroundcolor.
For this i created a Custom Script:
Public Function GetColor
@Chris Thank you this is what i needed. Because my Columns were dynamic I had to write another function to get a Number:
Public Function GetColumnNumber(ByVal parameter as Parameter,ByVal SSID As String) as String
For i as integer = 0 to parameter.Count-1
If CStr(parameter.Value(i)) = SSID THEN
Return i
END IF
Next
End Function
In the Cell i wrote this:
=code.GetColor(code.GetColumnNumber(Parameters!SSID,Fields!SSID.Value))
Thanks again :)