Adobe ColdFusion 8

Using report styles

A report style is similar to a font style in Microsoft Word. Instead of explicitly associating an element with formatting specifications, you associate the element with a style. This provides you with report-wide control of the formatting characteristics of your report.

Additionally, you can specify style that is the default for the report. The ColdFusion Report Builder uses the default style for all fields for which you have applied no other font specifications or styles. The default style, if defined, is displayed in bold in the Report Styles panel.

Report Builder also lets you import styles from a Cascading Style Sheet (CSS) file and export styles defined in Report Builder to a CSS file. This way you can enforce standard formatting across reports and override styles at run time from a CFM page. For more information, see Using Cascading Style Sheets and the CFML Reference.

Note: When choosing fonts for your report, you must ensure that the fonts are available on the server that runs ColdFusion and (if you don't embed fonts) on the client computer. For more information on fonts, see Creating a simple report.

Define a style

  1. Choose Window > Report Styles.
  2. Click the (+) icon at the upper edge of the Report Styles tab.
  3. Type a value for the Name field. Style names must be unique.
  4. Add other style characteristics, and click OK.

Specify a style as the default

  1. Edit an existing text style or create one.
  2. Select the option with this label: This is the default style if no other style is selected for an object.
  3. Add or modify other text style characteristics, and click OK.

Apply a style to a report element

  1. Select the element in the report band.
  2. Choose Window > Properties Inspector.
  3. Choose the style from the Style pop-up menu.

For more information, see the Report Builder online Help.