This is a migrated thread and some comments may be shown as answers.

Table of Contents ... DocumentMap and PageNumber

4 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 28 Jul 2015, 11:36 AM

Hello Support Team,

we need in our reports a table of contents with page number of each chapter.

DocumentMap functionality is a very good approach. However, because we lack the access to the relevant page number of DocumentMap element.

One could perhaps provide a copy of IList <DocumentMapNodeModel> documentMapNodes in Class ReportViewer (WPF).

After rendering the report I could see the page numbers for the creation of the TOC.

Or is there perhaps a solution to our problem?

4 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 1
answered on 28 Jul 2015, 12:30 PM

I have found a solution.

I helped me with ItemsSource of DocumentMapTreeView Control

0
Garry Goon
Top achievements
Rank 1
answered on 13 Apr 2016, 12:37 AM
so  if there is a solution to the TOC, where/what is it...
0
Garry Goon
Top achievements
Rank 1
answered on 13 Apr 2016, 12:41 AM
the toc solution needs to have the capability to print the toc with the report.
0
Michael
Top achievements
Rank 1
answered on 13 Apr 2016, 05:51 AM

I helped me with this code

 

void ReportViewer_RenderingEnd(object sender, EventArgs e)

        {
            var template = ReportViewer.Template;
            var myControl = (RadTreeView)template.FindName("DocumentMapTreeView", ReportViewer);
    }

The DocumentMap is in the ItemsSource from object named myControl (Typ DocumentMapNodeModel)

Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Michael
Top achievements
Rank 1
Garry Goon
Top achievements
Rank 1
Share this question
or