Setting a report's background

Reports can have elements that appear in the report background, behind all other report elements. We can add any report element to the background by using the JRXML <background> element. The following JRXML template demonstrates how to do this:

<?xml version="1.0" encoding="UTF-8" ?> <jasperReportxmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge .net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="BackgroundDemoReport" > <style name="centeredText" hAlign="Center" vAlign="Middle" /> <style name="boldCentered" style="centeredText" isBold="true" /> <style name="backgroundStyle" ...

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.