Summary

In this chapter, we discussed several JasperReports features that allow us to control the layout of a report.

By setting the appropriate attributes of the <jasperReport> JRXML element, we can control report-wide layout properties, such as margins, page width, page orientation, and others. Text properties such as size and font can be set by using report styles or by setting the appropriate attributes of the <text> JRXML element. We can use styled text to modify the style of individual words, phrases, or sentences by setting the isStyledText attribute of the <textElement> JRXML element.

We learned to add multiple columns to a report by setting the columnCount attribute of the <jasperReport> JRXML element. We also learned to divide the report ...

Get JasperReports 3.5 for Java Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.