none
Create table of contents in c# RRS feed

Answers

  • Well, if you're working with the Word APIs all you should need to do is use the Document.TablesOfContents.Add method, passing System.Type.Missing to all optional parameters. This inserts the built-in TOC field that will automatically generate a Table of Contents based on standard options, which builds the TOC based on the use of Heading styles.

    If you need non-standard options, then you need to understand more about how TOC generation works. That means you'd need to describe in some detail how TOC entries should be recognized in your documents. We'd also want to know the version of Word involved.


    Cindy Meister, VSTO/Word MVP, my blog

    Wednesday, February 6, 2013 1:18 PM
    Moderator