36.5 Create a Report Block to Display the Table of Contents

The steps in this section will show you how to create a group above report block in the Header section of your report. This report block will display two levels of headings in the table of contents. You will also add a field to your layout to display the page number where each heading is found in report.

To create a group above report block in the Header section:

  1. In the Paper Layout view, click the Header Section button in the toolbar.

  2. Click the Report Block tool in the tool palette, then draw an area about 6 inches (15 centimeters) wide and 1.5 inches (4 centimeters) high. Release the mouse button to display the Report Block Wizard.

  3. In the Report Block Wizard, on the Style page, select Group Above, then click Next.

  4. On the Groups page, click G_MAIN_TOPIC, then click Down to move it to the Displayed Groups list.

  5. In the Available Groups list, click G_1, then click Down to move it to the Displayed Groups list.

  6. Click Next.

  7. On the Fields page, click each of the following fields in the Available Fields list, then click the right arrow (>) to move them to the Displayed Fields list, then click Next.

    • MAIN_TOPIC

    • SUB_TOPIC

    • PAGE

  8. On the Labels page, clear all the labels, then click Next.

  9. On the Template page, click Finish.

    Your report block displays in the Paper Layout view:

    Figure 36-4 Paper Layout view of the Header Section

    Description of Figure 36-4 follows
    Description of "Figure 36-4 Paper Layout view of the Header Section"

  10. Click the Field tool in the tool palette and create a field above the PAGE field, next to the F_MAIN_TOPIC field.

  11. Double-click the new field object to display the Property Inspector, and set the following properties:

    • Under Field, set the Source property to Subcategory_Page.

    • Under Summary, set the Reset At property to G_1.

  12. Save your report.