[]
        
(Showing Draft Content)

Table of Contents

In Wyn Enterprise, the Table of Contents control is used to display the document map of the report. A document map is a visual tool used to display the hierarchy of the report elements. The Table of Contents control allows you to quickly understand the content of the report and to navigate inside a report using the organized hierarchy of the report headings and labels.

The Table of Contents control is available in the Page and RDL reports only. The Table of Contents control can be used to render or print the table of contents of the report.

Structure

Structure of the Table of Contents control


To add a Table of Contents control to a report, navigate to the Report Designer and follow the below instructions:

  1. From the Designer Toolbar, drag and drop the Table of Contents control onto the design area.

    Drag and drop TOC control on design area

  2. To set up the mapping for the Table of Contents control, set the labels for the report elements you want to display in the Table of Contents using the Label property. The value of Label property can be set as an expression. In the TOC/Document Map, the report section's Label is displayed on the top of the other labels set for the report controls in that section. The report elements include report controls, and the report sections in case of RDL report. You should enable the Show Advanced Properties option from the Properties Mode button to see Label property.

    show-advanced-properties


  3. Advanced properties appear in the Inspector Panel properties, and the Label property is available under the MISC section. Enter a value or an expression in the Label property to display the report element in the Table of Contents.

    label-chart


Note: The label property set for Report elements (report controls and report sections in RDL reports) is used to display document map labels for corresponding elements in TOC.

  1. Using the Inspector Panel on the right side of your screen, customize the appearance of the Table of Contents control. See the Inspector Panel Properties section for more information on the properties of the Table of Contents control.


  2. Below is an example scenario with a Table of Contents control linked to three report elements: a Table, an Image, and a Chart.

    tableofcontents-on-preview


Inspector Panel Properties

Common

Property

Description

Name

Add a unique name to the Table of Contents control. Special characters such as period (.), space ( ), forward slash (/), backslash (\), exclamation marks (!), and hyphens (-) are not supported. You can use an underscore (_) in the name of the control.

Background

Property

Description

Color

Select a background color for the Table of Contents control.

Border

Property

Description

Width

Select the width of the Table of Contents control.

Style

Select a style for the border from the following options: Dotted, Dashed, Solid, Double, Groove, Ridge, and Inset.

Color

Select a color for the border of the Table of Contents control.

Dimensions

Property

Description

Left

Set the left margin of the Table of Contents control.

Top

Set the top margin of the Table of Contents control.

Width

Set the width of the Table of Contents control.

Height

Set the height of the Table of Contents control.

Layout

Property

Description

Style

Select a color theme for the Table of Contents control from the dropdown.

Layer Name

Sets the report layer.

Page Break

Select a page break option (None, Start, End, StartAndEnd).

New Page

Select an option to start the content after a page break. The available options are Next, Odd, and Even.

Z-Index

Stack order of an element.

Visibility

Property

Description

Hidden

Set initial visibility of Table of Contents control.

Toggle Item

Set the report item to set the visibility of Table of Contents control.

Data

Property

Description

Max Level

Set the maximum level of the data in the Table of Contents control.