Tabulars

A tabular is a component designed to lay out other components. Unlike a table component, that is used to display a dataset, a tabular is a set of cells that can each display a dataset in a component.

Inserting a tabular in a report

A tabular can be inserted in the report areas listed in Component placement.

To insert a tabular into a report, use either of the following ways:

After a tabular has been created in a report, you can then:

You can also customize the tabular appearance and behavior by setting properties in the Report Inspector, which can be saved as a CSS style for future use (for details, see Creating a CSS style).

Merging and splitting tabular cells

In a tabular, adjacent cells that form a rectangle can be merged into one cell.

Resizing, inserting and deleting columns/rows in a tabular

Formatting text and paragraphs in a tabular cell

The text and paragraphs you create in a tabular cell can be easily formatted according to your requirements. For example, you can change the font face, font color of the text, the indentation of any paragraph. You can even find and replace a text string with another one easily as with a word processor. For detail, refer the specific topics in the Text boxes section.

See an example: The SampleComponents catalog, included with JReport Designer, contains reports that have examples of how each component type could be used in a report. For the tabular component example, open <install_root>\Demo\Reports\SampleComponents\TabularReport.cls.