A document map provides a set of navigational links to report items in the rendered report. A user can
click links in the document map to jump to the report page that displays that item.
The Document map is defined by setting the DocumentMapText and
BookmarkId properties of any report item/group. The BookmarkID
property should be unique for the whole IReportDocument. If BookmarkID is not set,
then the Value of DocumentMapText is taken into account. Valid values are static text, expression, or text with embedded expressions.
The resulting text will be displayed in the document map tree.
To form hierarchical structure of the document map, you may set the DocumentMapText property of the report groups, the
CrossTab/Table groups, the Detail section and the Report (useful for SubReports). For example nested groups will
create nested nodes in the tree. Each of the produced nodes will navigate to the most appropriate page and location
in the rendered report. For example bookmark of a report group will navigate to the group header (or first detail
inside the group if header is not visible).
To add a node in the document map pointing to a report item, you may use the DocumentMapText property of that item. Note
that all report items (except the Detail section and the Report itself) produce leaf nodes in the document map tree.
For example if you have a Panel item with TextBox item inside, and set the DocumentMapText property of both, the resulting
nodes will be added as leaf siblings in the document map.
The order of items in the document map is according to the order of the report items in the report items' collection, and not
by the order in which you have added DocumentMapText to items.
Note |
|---|
The document map is intended for use in the Designer Preview and in all ReportViewers. From the supported
rendering extensions, only the PDF renders a document map as Bookmarks pane. All other rendering extensions ignore document maps.
|
In This Section