Creating an additional report layout Adding a title to a report Adding a table of contents to a report

4-14 Oracle Reports Users Guide to Building Reports 2. To add another layout section to the current report layout, create an additional report layout, as described below. 3. Make further modifications to the default layout manually in the Paper Layout view. See also Section 2.4.2, About layout defaulting Section 4.10.2, Creating a default layout for a section Chapter 4.9.13.3, Changing the default layout spacing

4.5.5 Creating an additional report layout

To add a new layout section to a report without overriding existing layouts:

1. In the Paper Layout view, click the Report Block tool in the tool palette.

2. Drag a rectangular area for the new layout to display the Report Block Wizard.

3. Follow the wizard to select the data to display in the new layout section.

4. To reorder the layout sections, click and drag them to new positions in the Paper

Layout view.

5. Modify the report output in the Paper Design view.

4.5.6 Adding a title to a report

To add a title to a report: 1. In the Object Navigator, select or open the report.

2. Choose Tools Report Wizard.

3. On the Style page, type a title for the report in the Title field.

4. If the report title is to be used in a template, see Section 4.12.5, Formatting the report title in a template . See also Section 2.1.1, About report titles Section 2.7.1, About templates Caution: If you re-enter the Report Wizard after making manual adjustments to your layout in the Paper Layout or Paper Design view, you will lose these layout changes when you click Finish in the Report Wizard, which redefaults the layout. Caution: If you re-enter the Report Wizard to make modifications, then click Finish in the Report Wizard, your entire layout will be overwritten with a new default layout. You will lose the additional report layout you have created, and any manual changes made to the layout in the Paper Layout or Paper Design view. How To... 4-15

4.5.7 Adding a table of contents to a report

To create a table of contents TOC for a report, you can use the Format Order property or the SRW.SET_FORMAT_ORDER built-in procedure to format the Main section of the report first and use report triggers to build a table containing the TOC entries. When the first element for the TOC is formatted, a trigger fires and creates a row in the TOC table containing the TOC entry and the page number. After the Main section has completed formatting, the format order setting can define that the Header section is formatted next. The Header section can contain a report block based on the TOC table. After formatting, you can output your report with a TOC the Header section, followed by the report body the Main section, followed by the Trailer section. For two step-by-step examples, see Chapter 35, Building a Paper Report with a Simple Table of Contents and Index and Chapter 36, Building a Paper Report with a Multilevel Table of Contents . See also Section 2.8.1, About format order

4.5.8 Adding index to a report