Add table of contents into second page of word document

Home Forums WordprocessingML Add table of contents into second page of word document

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3438
    Eric White
    Keymaster

    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?

    Introduction to Open XML

    Introduction to 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

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.