5.11.3  Heading

A Heading element is a special kind of text element, which has an additional heading level attribute. The heading level has two effects on the element:

The report engine automatically generates a heading number and (optionally) prints the number to the left of the text.

The report engine uses the heading level to generate a Table Of Contents (TOC) if a TOC element exists in the report. (See Table of Contents for details.)

To add a Heading element to a report, follow these steps:

1. Click in the report to place the cursor at the location where you want to add the new heading.

2. Click the 'Heading' component in the Toolbox panel. This opens a popup menu containing the available level options.

3. Select the heading level from the popup menu. This inserts a new Heading element at the cursor location. (The heading level can be changed later.)

4. Enter the desired heading text into the text field. (See the Text Element section for details about text elements.)

5. Right-click the heading element, and select 'Properties' from the context menu. This opens the 'Heading Properties' dialog box.

6. Select the Heading tab in the 'Heading Properties' dialog box.

7. Enter the 'Level' of the heading, and select a heading 'Format'.

 

The dot-separated formats, such as “1.2.3.4.5.6.7.8” and “a.b.c.d.e.f.g.h,” indicate that the number or letter of the selected heading will be prefixed with the numbers/letters of its superordi­nate headings. The single-character formats, such as “8” or “h,” indicate that the number of the selected heading will be displayed without any prefixed digits. To define a custom heading format, select the 'Custom' option, and specify a class that implements the inetsoft.report.HeadingFormat class.

8. Select 'Show Number' to display the heading number to the left of the heading text (default).

9. Select 'Show Page Number' to display the heading page number in a generated TOC (default).

To set a default heading numbering style, follow these steps:

1. Select 'Preferences' from the Style Studio Report menu.

2. Select the Format tab.

3. Enter the default 'Format' to be used for newly created headers.

 

See Also

Adding Heading Elements to a Section, to use heading elements to generate a TOC of group names.

<< 5.11.2 Subreport © 1996-2013 InetSoft Technology Corporation (v11.4) 5.11.4 Table of Contents >>