Add table of contents into second page of word document
- This topic has 1 reply, 2 voices, and was last updated 9 years, 9 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 › WordprocessingML › Add table of contents into second page of word document
Hi Sahil,
The first question is how do you know the end of the cover page? Do you have a hard page break afterwards?
The key point is that you need to find the first paragraph of the second page, and add the altChunk element immediately before.
Unfortunately, my current schedules and deadlines prohibit me from writing this sample code, but I’m sure that you can work it out. Have you viewed the introduction videos for Open XML and WordprocessingML?
From those videos, you can learn how to make the appropriate changes to your code so that you can add the TOC anywhere you want to add it.
Cheers, Eric