Java Reference
In-Depth Information
or allow us to do some other tasks like importing Java packages, or setting the report
font. Unless stated otherwise, each element can be used any number of times in the
template. The following sections outline all the sub-elements of the <jasperReport>
root element.
<property>
This element is used to put arbitrary information in the report template.
<property name="someproperty"
value="somevalue"/>
Properties can be retrieved by a Java application loading the report by invoking the
JasperReport.getProperty() method.
A JRXML template can contain zero or more <property> elements.
<import>
This element is used to import individual Java classes or complete packages.
<import value="java.util.HashMap"/>
A JRXML template can contain zero or more <import> elements.
<reportFont>
This element is used to define one or more fonts that can be used on the text
displayed on the report.
<reportFont name="Arial"
isDefault="true"
fontName="Arial" size="12"
isBold="true" isItalic="false"
isUnderline="false"
isStrikeThrough="false"
pdfFontName="Helvetica"
pdfEncoding="CP1252"
isPdfEmbedded="false"/>
A JRXML template can contain zero or more <reportFont> elements.
 
Search WWH ::




Custom Search