BackPrevious Page Next PageNext

Editing a Page Report

Inserting other components into a page report

Duplicating the components

Resizing the components

Editing component properties

Changing the Position property of components

Showing components in a TOC tree

Deleting components from a page report

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.

Inserting other components into a page report

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.

Duplicating the components

You can duplicate any component in a page report without creating it the second time.

  1. Select the component which you want to duplicate.
  2. Right-click the component and then select Copy from the shortcut menu (or click the corresponding menu command).
  3. In the required position, right-click your mouse, and then click Paste.

Resizing the components

To resize a component in a page report, follow the steps below:

  1. Select the component with the size you want to change, and the sizing handles will then appear along the four boundaries of the component.
  2. Drag a sizing handle to resize the component to the required size.
  3. Repeat the steps to resize other components.

Editing component properties

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.

Changing the Position property of components

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:

To change the position property of a component:

Showing components in a TOC tree

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:

  1. Select the component node in the Report Inspector.
  2. Set its TOC Anchor property to true.
  3. Specify the display value for the anchor by setting the Anchor Display Value property.

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.

Deleting components from a page report

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:

BackPrevious Page Next PageNext