Picking up and applying styles
In this recipe, we will see a very useful utility within Cognos Report Studio that you can use to deal with styles in your reports.
Getting ready
We will use the same list report that we used in the previous recipe for this recipe.
How to do it...
In this recipe we will see how to pick up a specific style that is applied on a specific column and then apply it on other columns in the report:
We will apply certain formatting to the list columns. Start by applying the following to the
Product line
column:Font: 12 pt.
Background Color: #FFFF99.
Border: 1pt solid lines on left and right. None for Top and Bottom.
Select the
Product line
column. Click on the Pick-Up Style button from the toolbar.Now select the
Product type
andProduct
columns from the list (by holding the Ctrl key).Click on the Apply Style button.
You will see that all the formatting, font, background color, and borders are applied to the selected columns:
Now again select the
Product line
column.This time...