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 Toolbox 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:
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.
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 and text boxes 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, which can be the report body, a tabular cell or a text box. 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 the object and then selecting an item from the Move submenu (or clicking the corresponding move button on the Alignment toolbar).
To change the position of a component:
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: