Inserting other components into a page report
Changing the Position property of components
After a page report is built up, you can make further modifications to it, in order to make it better satisfy your requirements. In JReport, to edit a page report is actually to edit the components in its report tabs. This section only lists the basic operations used for editing a page report. For more details, you can refer to the specific section of each component in the chapter Components.
Note: The other way to edit a page report is by changing its properties in the Report Inspector. For detailed property descriptions, see Properties in the Report Inspector.
After the initial design work of a page report, you are also free to insert more components into it. To insert a component, you can either use the menu command or the Components panel.
You can duplicate any component in a page report without creating it the second time.
To resize a component in a page report, follow the steps below:
Each component has a set of properties that can be used to customize the appearance and behavior of the component.
To edit the properties of a component, select the component in the report or from the report structure tree in the Report Inspector, then in the Properties sheet modify the property values as required. See Properties in the Report Inspector for detailed information about the properties.
After editing the properties you can save them as a CSS style for future use if needed.
Report templates in JReport use a flow layout model. That is, paragraphs and components in the report body can flow from one page to another, maintaining their sequence, and the Position property controls whether a component is to be part of the flow, or separate from it. Besides the report body, tabular cells, text boxes and KPI components themselves in JReport can also act as flow layout containers.
In a flow layout model, objects are positioned relative to one another or absolutely. The Position property controls the position of components in the flow layout container. Components placed in other areas, such as table cells or banded panels are not affected by the Position property.
The Position property can be one of the following values:
When components in the same flow layout container have their Position property value set to Absolute and overlap, you can set the display order of the objects by right-clicking an object and selecting an item from the Move submenu, or selecting the objects and clicking the corresponding move button on the Format menu tab.
To change the position property of a component:
Some components in a page report can be set up to show in a table of contents. Then when previewing the report in JReport Format, viewing it in Page Report Studio, exporting it to PDF or HTML format, TOC Browser can be used to locate the corresponding component.
To show a component in a TOC tree:
JReport also allows you to specify other properties for a TOC tree, including its CSS style, colors and fonts. You can specify these properties by selecting the TOC node in the Report Inspector.
If you find any components contained in a page report are not required, you can use either of the following two ways to remove it from the report tab: