Layered controls are elements that you place at the same location of a report band, and then use PrintWhen expressions to conditionally display one or the other at run time. You can use layered elements to customize the circumstances under which the elements display and enhance a report's ability to communicate important information.
Place an element directly over another element
- Place the elements on the band.
- Choose Window > Properties to display the Properties panel.
- Specify a PrintWhen expression, display properties, and placement properties for each element using the Properties panel, as follows:
- Specify a PrintWhen expression for each element. For example, you might specify the following expression to display one element when shippeddate is later than requireddate (that is, late) and another element when shippeddate is earlier than requireddate:
First element: query.shippeddate LTE query.requireddate
Second element: query.shippeddate GT query.requireddate
- Specify different display characteristics for each element. For example, if an order is late, display it in red text.
- Set the Top, Left, Height, and Width properties to the same values for each element.
When you specify identical placement properties, you access the individual elements through the Layered Controls menu.
Use the Layered Controls menu
- Right-click on the top element.
- Select Layered Controls > elementname from the pop-up menu. The Report Builder identifies each layered element by displaying its PrintWhen expression.
- Select the element and choose Window > Properties Inspector to view the element properties.