Table of Contents ... DocumentMap and PageNumber

5 posts, 0 answers
  1. Michael
    Michael avatar
    5 posts
    Member since:
    May 2015

    Posted 28 Jul 2015 Link to this post

    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?

  2. Michael
    Michael avatar
    5 posts
    Member since:
    May 2015

    Posted 28 Jul 2015 Link to this post

    I have found a solution.

    I helped me with ItemsSource of DocumentMapTreeView Control

  3. DevCraft banner
  4. Garry Goon
    Garry Goon avatar
    3 posts
    Member since:
    Feb 2010

    Posted 12 Apr in reply to Michael Link to this post

    so  if there is a solution to the TOC, where/what is it...
  5. Garry Goon
    Garry Goon avatar
    3 posts
    Member since:
    Feb 2010

    Posted 12 Apr in reply to Garry Goon Link to this post

    the toc solution needs to have the capability to print the toc with the report.
  6. Michael
    Michael avatar
    5 posts
    Member since:
    May 2015

    Posted 13 Apr Link to this post

    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)

Back to Top
DevCraft banner