Java Reference
In-Depth Information
<textElement rotation="None"/>
<text>
<![CDATA[SAMPLE]]>
</text>
</staticText>
</band>
</background>
<title>
<band height="60">
<staticText>
<reportElement x="0" y="0" width="555" height="60"
style="boldCentered"/>
<text>
<![CDATA[Report Background Demo]]>
</text>
</staticText>
</band>
</title>
<detail>
<band height="600">
<staticText>
<reportElement x="0" y="300" width="555" height="60"
mode="Transparent" style="centeredText"/>
<text>
<![CDATA[This report demonstrates how to set the report
background.]]>
</text>
</staticText>
</band>
</detail>
</jasperReport>
The JRXML <background> element, just like all other JRXML elements that create
a report section, contains a single <band> element as its only sub-element. The
<background> element is different from other section elements because it is designed
to span a complete page, with its contents shown behind all other report elements.
It is worth noting that to allow report backgrounds to display correctly, the mode
attribute of other report sections must be set to Transparent .
 
Search WWH ::




Custom Search