Hitachi Vantara Pentaho Community Wiki
Child pages
  • 01. Report Layout
Skip to end of metadata
Go to start of metadata

The report xml definition for Pentaho Reports contains the following major sections; Report Header, Report Footer, Page Header, Page Footer, Groups including each group along with their corresponding header and footer, and Details/Items.

Report Sections




Allows a report to reference another xml document for other report sections. For instance, multiple reports can reference a single report with only a page header defined for easier report maintenance.


Sets variables with corresponding values for a report to use at runtime. Thus, common values can be set throughout a report like common text, background color or fonts.

Note: The parser-config only defines replacement values for the parser itself. There is no parser-config anymore once the report has been parsed.


Allows parameters to be set for special output handling or debugging purposes.


Printed before any other object is printed on a new page. This band can consume the complete space of the page and will never trigger a pagebreak. The watermark-band is intended to fill the page background.


Determines content that prints on the first page of a report.


Determines content that prints on the last page of a report.


Determines content that prints at the top of each page of a report.


Determines content that prints at the bottom of each page of a report.


Determines how the report is grouped and the content of each group's header and footer.


Determines the fields and content will be the line items or details.


Computes results based on predefined or customized mathematical expressions or complex scripts.

Base XML

Below is the base definition for a report.

<?xml version="1.0" encoding="ISO-8859-1"?>
<\!DOCTYPE report PUBLIC "-//JFreeReport//DTD report definition//EN//simple/version 0.8.5" "">












Example of Report Output

Position Objects

The position of an object in a section is declared by defining the x and y coordinates within a particular section. The top left starting point is x=0 and y=0 and is also the default position. When using an object, the mandatory attributes that need to be specified are the x (horizontal position), y (vertical position), height and width. These attributes are defined in 1/72 inch unit increments. These can be defined in units or percent. When using percent to define y and height, the container's height must be specified. The container's height is computed automatically. If a height is defined, it serves as a minimum-height. Therefore a band can increase its height beyond that size. Relative x and width values are resolved against the width of the parent (which corresponds to 100%). Relative y and height values are resolved against the used height of an container. For that computation, the reporting engine first computes the effective height of all absolutely positioned elements and uses that height as 100%. Then it computes the complete layout for all elements, with all relative sizes resolved against that height.

X & Y Coordinate Example

As with every element container, you may define default font settings for sub elements without their own font definition.

  • No labels

1 Comment

  1. Anonymous

    Ummm... the X & Y diagram above is very confusing. Shouldn't y=18 for the second line and y=36 for the 3rd line???