A JasperReports report design is specified in a XML configuration file. In this section, the XML configuration file, catalog.xml
, is configured for a PDF report. A JasperReports configuration file is an XML file based on the jasperreport.dtd
DTD. The root element of the configuration file is jasperReport
. Some of the other elements (with commonly used sub elements and attributes) in a JasperReports XML file are listed in following table:
XML Element |
Description |
Sub Elements |
Attributes |
---|---|---|---|
jasperReport |
Root Element |
reportFont, parameter, queryString, field, variable, group, title, pageHeader, columnHeader, detail, columnFooter, pageFooter. |
name, columnCount, pageWidth, pageHeight, orientation, columnWidth, columnSpacing, leftMargin, rightMargin, topMargin, bottomMargin. |
reportFont |
Report level font definitions. |
Report level font definitions. |
name, isDefault, fontName,size, isBold, isItalic, isUnderline, isStrikeThrough, pdfFontName... |