Crystal Reports for Eclipse Designer Guide

Color (red, green, blue)

Color and RGB (red, green, blue) equivalent functions.
Description
Color returns the color attribute as specified by the red, green and blue components.
Arguments
  • red is a Number value representing the red component of the resultant color, value is between 0 and 255.
  • green is a Number value representing the green component of the resultant color, value is between 0 and 255.
  • blue is a Number value representing the blue component of the resultant color, value is between 0 and 255.
  • Returns
    Font color attribute.
    Action
    Color returns the color attribute as specified by the red, green and blue components.
    Typical use
    To specify a custom color when writing a conditional formatting formula for the font or background color of a report field.
    Example
    if CurrentFieldValue > 10000 then 
         Color (150,230,150)
    else
         Color (10,19,200)
    This formula formats a Number field to display in the color as specified by Color (150,230,150) if its current value is greater than 10000, otherwise to display it in Color (10,19,200).



    SAP BusinessObjects
    http://www.sap.com/sapbusinessobjects/
    Support services
    http://service.sap.com/bosap-support/
    Product Documentation on the Web
    http://help.sap.com/