Report Authors / Report Controls / Report Controls in Page/RDLX Report / Table of Contents
Table of Contents

The TableOfContents report control is available in Page and RDLX reports. It is used to display the document map, an organized hierarchy of the report heading levels and labels along with their page numbers in the body of a report. 

The TableOfContents control allows you to quickly understand and navigate the data inside a report in all viewers that are supported in ActiveReports. Unlike the Document Map that is only available in the Viewers and cannot be rendered or printed, you can use the TableOfContents control to embed the table of contents structure in the report body for printing and rendering purposes.

Structure

Table of Contents structure

Important Properties

By clicking on the TableOfContents control, you can set its properties in the Properties panel.

Property Description
Levels Contains the collection of TableOfContents levels and allows you to access the LevelDesigner Collection Editor dialog, where you can set up the report TableOfContents levels and their properties
MaxLevel Restricts the maximum number of levels in the document map.
StyleName Allows you to apply the selected styles from a style sheet. These styles can be applied to the TableOfContents report control using the StyleName property or to Table Of Contents levels using the LevelDesigner Collection Editor dialog
OverflowName (Page report) Specify the OverflowPlaceHolder control name to link it with the TableOfContents control.
FixedHeight (Page report) Allows you to set the maximum height of the TableOfContents control on each page, similar to the FixedSize property that is available with other report controls.

Table of Contents Dialog Properties

Name: Enter a name for the table of contents that is unique within the report. This name can be called in code. You can only use underscore (_) as a special character in the Name field. Other special characters such as period (.), space ( ), forward slash (/), backslash (\), exclamation (!), and hyphen (-) are not supported.

Tooltip: A textual label for the report item used to include TITLE or ALT attributes in HTML reports. 

LevelDesigner Collection Editor

BackgoundColor: Select a color to use for the background of the TableOfContents level.

Color: Select the color of the text.

Font: Select the font to render the TableOfContents level text.

Style: Choose Normal, Italic, or select the <Expression...> option to open the Expression Editor and create an expression.

Family: Choose the font family name.

Size: Choose the size in points for the font.

Weight: Choose from Lighter, Thin, ExtraLight, Light, Normal, Medium, SemiBold, Bold, ExtraBold, Heavy, and Bolder, or select the <Expression...> option to open the Expression Editor and create an expression.

Padding: Specify left, right, top, and bottom values for the padding to apply to a TableOfContents level.

StyleName: Select a style to apply to the TableOfContents level.

TextAlign: Specify the horizontal alignment of the text.

TextDecoration: Choose from None, Underline, Overline, and LineThrough, or select the <Expression...> option to open the Expression Editor and create an expression. 

See Also