Conditionally Change a Control's Appearance
This document describes how to change a report control's appearance based on a specific condition.
Warning
Use the approach below if expression bindings are not enabled in the Report Designer (the Designer does not provide the Expressions panel).
See Conditionally Change a Control's Appearance if expression bindings are enabled in the Report Designer (the Designer provides the Expressions panel).
Select the report and expand the Appearance category in the Properties panel. Select the Formatting rules node and click the plus button to add a new formatting rule.
Click the Condition property's ellipsis button. In the invoked Expression Editor, specify the required Boolean condition (which means that its result is either true or false) and click OK.
Define the formatting to be applied (e.g. specify the desired font color).
Select a required band or control to which the formatting rule should be applied and enable the formatting rule's check box.
You can also customize the precedence of formatting rules using the up and down arrow buttons on the right of the Formatting rules node. The rules are applied in the same order that they appear in the list, and the last rule in the list has the highest priority.
Switch to Print Preview to view the resulting report.