## Applying a style to a report

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

- Applying a style to a report via the report wizard:
  1. Select the required style from the Style box in the Style screen of the report wizard.
  2. Click Finish to close the wizard and the selected style will be applied to the report.
- Applying a style to a report via the style drop-down list on the toolbar:
  1. In the design area, select the component(s) to which you want to apply a style.
  2. Select the required style from the style drop-down list on the Standard toolbar.
- Applying a style to a report via the Report Inspector:
  1. In the Report Inspector, click the report root node, scroll down the Properties panel to find the Style Group property entry.
  2. Select the style group that contains the style you want to apply from the drop-down list. The style applied in this way is an XSD style.
  3. When you click the View tab to view the report, the Select Style Group dialog appears, prompting you to select a group with which you want to view the report.

Notes:

- JReport provides 10 sets of common CSS style files convenient for your choosing. You can choose one that satisfies you from the 10 sets; otherwise, you can apply others that you create and edit on JReport Designer or imported locally.
- There are 15 sets of demo XSD styles provided by JReport, which can be applied to crosstabs, or tables, crosstabs and DBFields converted from previous versions. Other components can only apply the XSD styles which are created by yourself.
- By default, the demo XSD styles are not included in either the Style box of the Report\Component Wizard or the style drop-down list on the toolbar. To have them displayed, uncheck Only CSS styles available in the style list in the Options dialog (File > Options > Component).
- If you choose to apply a style to a report by setting the Style Group property, later when you publish the report to JReport Enterprise Server, the Publish Font and Style dialog will be displayed for you to select the style groups you want to publish.