Previous Next

Building a Report That Contains Subreports : Tutorial 4: Building a report containing side-by-side subreports : Task 12: Display the subreports next to one another

Task 12:

Now that the subreports display the correct data, you can focus on laying out the subreports next to one another. You cannot place two tables next to one another because BIRT Report Designer creates block-level elements, which means that each element starts on a new line. To display side-by-side tables, you insert the tables in a grid. The grid enables you to align elements easily.

1
2
Drag a grid element from the palette, and drop it into the Detail row, between the [CUSTOMERNAME] data element and the Orders table. Before you drop the grid, verify that the straight cursor appears on the left side of the Orders table.
Insert Grid prompts you to specify the number of columns and rows for the grid.
3
In Number of columns, type 2 and in Number of rows, type 1, then choose OK. A grid using two columns and one row appears in the layout editor.
4
Move the Orders table to the first grid cell. To do this, select the Table tab in the bottom left corner of the table, then drag the table and drop it in the grid cell.
5

Figure 13-27 Side-by-side subreports in the report design

Figure 13-27
6

Figure 13-28 Report preview showing side-by-side subreports

Figure 13-28

(c) Copyright Actuate Corporation 2008