Add table of contents after first page

Home Forums Open-Xml-Sdk Add table of contents after first page

Tagged: , , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Eric White 9 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3456

    Eric White
    Keymaster

    You need to find the paragraph in the document before which you want to add the TOC, and pass that paragraph to the AddToc method.

    The question for you is how will you find the first paragraph after your cover page?

    If your cover page has a page break at the end, then that is probably the easiest way to find it.

    What does the markup for your cover page look like? Do you have a page break at the end of it?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.