O'Reilly logo

JasperReports 3.5 for Java Developers by David Heffelfinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Laying out report elements

As we saw in Chapter 3,Creating your First Report, a report can contain the following sections: a report title, a page header, a page footer, a column header, a column footer, a detail section, a report summary, and a last page footer. These sections are defined by the<title>, <pageHeader>, <pageFooter>, <columnHeader>, <columnFooter>, <detail>, <summary>, and<lastPageFooter> JRXML elements, respectively.

Each of these elements contains a single<band> element as its only subelement. The<band> element can contain zero or more<line>, <rectangle>, <ellipse>, <image>, <staticText>, <textField>, <subReport>, or<elementGroup> subelements. Except for<elementGroup>, each of these elements must contain a single<reportElement> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required