## Applying styles

You can apply a style in the process of creating a report or at any time when designing a report. During report design, if you have applied more than one style to a component, the last style always covers the previous style.

The following introduces all the ways of specifying a style. Choose the appropriate methods available to you.

- Using wizards

  Report wizards contain a Style screen for you to specify a style.

- Using the style drop-down list on the toolbar

  The style drop-down list on the Standard toolbar provides a list of styles for choosing. In this way you can apply a style to one or more selected objects.

- Using the Report Inspector

  There is a Style Group property in the Others category of the Report Inspector for a report tab or a web report. It allows you to specify an XSD style.

Notes:

- There are 15 sets of demo XSD styles provided by JReport, which can be applied to crosstabs, tables, banded objects and DBFields converted from previous versions. Other components can only apply the XSD styles which are created by yourself. XSD styles are primarily for compatibility with previous versions.
- By default, the demo XSD styles are not included in either the Style box of the report wizards or the style drop-down list on the toolbar. If you want to have them displayed, uncheck the option "Only CSS styles available in the style list" in the Component category of the Options dialog.
- If you choose to apply a style by setting the Style Group property, later when you preview, export or publish the report, you will be asked to select the style group you want to use or publish. The style specified by the Style Group property will be applied automatically only when you directly run the report on JReport Server.
- When applying CSS styles, you may get warning message showing the CSS properties that are not supported by JReport. If you want to cancel the warning message, uncheck the option "Show warning message when CSS properties are not supported by JReport" in the General category of the Options dialog.