Task 8: Format the report
Now that the report displays the correct data, focus on improving the report’s appearance. You perform the following tasks in this section:
Adjust the column widths
When you insert a table, BIRT creates columns with equal widths. In this report, you can improve the layout by decreasing the width of the credit limit column, and increasing the width of the customer column. If you view the entire report, you see that some of the customer names extend to the edge of the column and one name is truncated.
3 Select the first column and decrease its width to 1.25 inches either by dragging the column boundary or setting its Width property.By decreasing the width of the first column, the width of the second column increases.Figure 8-21 Report preview showing adjusted column widthsRemove credit limit data from the detail rows
To verify that data appears in the correct credit limit groups, it is useful to display each customer’s credit limit. Now that you have verified the data, delete the individual credit limit information from the report.
Figure 8-22 Report preview showing credit limit data removed for each rowDisplay group headings on the first row of each group
The credit limit group headings appear in their own rows, above the detail rows of each group. In this procedure, drop the group headings so that they appear in the first detail row of each group.
2 Select the cell that contains the group heading, as shown in Figure 8-23. Be sure to select the cell and not the data element in the cell.Figure 8-23 Group heading cell selected
3 In the General properties of Property Editor, set Drop to Detail. In the report design, the group heading still appears above the detail row because technically the element is still in the group header row.
4 Preview the report. The group headings appear in the first row of each group, as shown in Figure 8-24.Figure 8-24 Report preview showing dropped group headingsSeparate each group with a line
Drawing a line to separate each group makes it easier to see each data group.
2 Select all the cells in the group footer row. To select multiple cells, press the Shift key as you click each cell.
3 In Property Editor, under Properties, choose Border, then set the border properties, as follows:
4 Add more space between the line and text above it. While the cells are still selected, choose the Padding properties in Property Editor, and set Bottom to 6.0 points, as shown in Figure 8-25.Figure 8-26 Report preview showing a line between groupsDisplay the number of customers text on one line
The text at the top of the table appears centered within the first column. In this procedure, you format the text so that it appears left-aligned and on one line.
2 Figure 8-27 Two cells in the top table header row selected
4 Select the [CUSTOMER_TOTAL] element in the merged cell, and in the General properties of the Property Editor, choose the B button and the Left button.Figure 8-28 Report preview showing Number of customers: 122 on one line
(c) Copyright Actuate Corporation 2012 |