Styles

JReport style is one of the most important concepts in both JReport Designer and JReport Server. A style in JReport is a set of object attributes that you can assign to components in your report to alter their appearance and characteristics. When you apply a style, you apply a whole group of property entries at once. For example, you may want to format the headings of a report to make them stand out. Instead of formatting them step by step as 12pt, Arial, and center-aligned with a blue background, you can simply achieve the same goal in one step by applying a predefined style that contains the style properties you want.

JReport supports two kinds of styles, XSD style and CSS style. This chapter presents their usages respectively.

Pick a task from the following: