In a , use the following steps to add report controls, groups and detail groups to the document map.
This topic will guide you through the following procedures:
To add a control to the Document Map
Using Document Map Label or Label Property
- On the , select a control you want to add to the Document map and right-click to choose Properties from the context menu.
- In the command section of the Properties Window, click Property dialog. This is a command to open the control's dialog. See Properties Window for more information on how to access commands.
- In the dialog that appears, go to the Navigation page and under the Document map label, enter a text or an expression representing the control in the Document map.
Alternatively,
- On the design surface, select the report control you want to add to the Document map and right-click to choose Properties from the context menu.
- In the Properties window that appears, enter a text or an expression in the Label property to represent the report control in the Document map.
Using HeadingLevel Property
- On the design surface, select the report control you want to add to the Document map and right-click to choose Properties from the context menu.
- In the Properties window that appears, set the HeadingLevel property to represent the report control in the Document map.
![](images/hs-note.gif) |
Note The HeadingLevel property defines the DocumentMap level for that control. |
Go to the or the Viewer to view the document map.
To add a group or a detail group to the Document Map
- Open a report that contains a group. See Grouping in a Data Region for further information.
- On the design surface, select the data region on which grouping or detail grouping has been set and go to the command section which appears below the Properties Window.
- Click Property dialog to open the data region dialog. See Properties Window for more information on how to access commands.
- In the dialog that appears, go to the Grouping or Detail Grouping page, and under the Document map label, enter a text or an expression representing the group or detail group in the Document Map.
Go to the preview tab or the Viewer to view the document map.
To create a hierarchical Document Map
- Open a report that contains a like a Table.
- With the data region selected, right-click to open the context menu and select Properties.
- In the Properties Window that appears, select the Property dialog command at the bottom of the window to open the data region dialog. See Properties Window for further information on how to access commands.
- On the data region dialog, on the Groups page, set the grouping expression. For example, group the data on StorePrice (=Fields!StorePrice.Value). See Grouping in a Data Region for further information.
- On the same Groups page, set the Document map label to the value of the grouping expression. For example, =Fields!StorePrice.Value.
- On the design surface, select a control inside the data region. For example, the TextBox in the detail row of the Table data region.
- Right-click the control and select properties to open the Properties Window. In the command section of the Properties Window, click Property dialog.
- In the dialog that appears, go to the Navigation page and under the Document map label, enter a text or an expression representing the control in the Document map.
Go to the preview tab or the Viewer to view the document map.
![](images/hs-note.gif) |
Note: In an report, you can also set grouping and set the document map label on the FixedPage dialog > Groups page. See Grouping in a FixedPage to learn how to set groups on a fixed page. |
To set the numbering style for Document Map levels
You can the set the numbering style for all document map levels using the Report dialog or in the Properties Window using the DocumentMap property.
- In the Report Explorer select the Report item.
- In the command section of the Properties Window, click Property dialog. This is a command to open the Report dialog. See Properties Window for more information on how to access commands.
- In the Report dialog that appears, go to the Document Map page and set the Source property to one of the available value.
- Set the Numbering Style to one of the available formats. The selected style would get applied to all the document levels and only to the selected source that you had set above.
- Click OK to close the dialog.
You can also set separate numbering style to different document map levels using the DocumentMapLevelDesigner Collection Editor dialog.
- In the Report Explorer select the Report item.
- Go to the Properties Window, click the Levels (Collection) property and then click the ellipsis button that appears.
- In the DocumentMapLevelDesigner Collection Editor dialog that appears, consider the hierarchy of report bookmarks that appears in Document Map and add as many levels required using the Add button.
- Select each level and set its NumberingStyle to any of the available format.
- Click OK to close the dialog.