Skip to content

Color and End Color

The background color of a section can be set by choosing the preferred color in the combo-box.

Instead of picking a color from the predefined colors or color selector, it is possible to return the color via a function. For example, each other row in the report output can get a different color through the results of a function. Use the following steps to create a report with output like:

Detail Colors Even Uneven

  1. Create a report on the customer table with the shown columns.
  2. Open the report expert.
  3. Click the details section in the available sections tree view.
  4. Click the background color item.
  5. Click the function button.
  6. Enter the following function, close the dialog, and if needed, refresh the report.
if (mod({&Record Number},2) = 0) then
    return (rgb(255,255,255))
else
    return (rgb(200,200,200))
end

Instead of using the RGB() function, one of the predefined color constants can be used.