Add table of contents after first page
- This topic has 1 reply, 2 voices, and was last updated 9 years, 8 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Open-Xml-Sdk › Add table of contents after first page
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?