Fourth and Final Screen-Cast in Series on Adding/Updating the TOC in OpenXML WordprocessingML Documents

Whew!  I finished the fourth and final screen-cast.  In this screen-cast, I show how to use Word Automation Services to repaginate a document and update the table-of-contents.

Shows how to use Word Automation Services to populate the TOC

You can download the code that I present in this video from OpenXMLDeveloper.org.

Here is the complete list of screen-casts in this series.

Link

Summary

Screen-cast #1

Explains the markup of tables-of-contents. TOCs use field markup.
See Deep dive into OpenXML Fields for more info.

Screen-cast #2

Presents some sample code that shows how to insert TOC markup into a document.

Screen-cast #3

Shows how to use Word Automation to update the TOC.

Screen-cast #4

Shows how to use Word Automation Services to update the TOC.

Screen-cast #5

Shows how to use an AutoOpen macro to update the TOC whenever any document that contains a TOC is opened.

!!!

3 Comments »

  1. How to generate Table Of Contents using OpenXML SDK 2.0? | PHP Developer Resource said,

    May 24, 2012 @ 2:30 am

    […] a look at Fourth and Final Screen-Cast in Series on Adding/Updating the TOC in OpenXML WordprocessingML Docume… by Eric […]

  2. Sasi said,

    October 22, 2013 @ 8:54 am

    Hi,
    I have created a word document using openxml, as it a new document it dont have table of contents. So how can I add table of contents to my document using C#. I think the above code works only when there is a TOC already in place.
    Please help me ASAP.
    Thanks in advance.
    Regards,
    ksr.

  3. Gerson Florez said,

    May 7, 2019 @ 4:25 pm

    Hi … all the links you have in the page redirect to openxmldeveloper.org but we can’t join because the captcha is not working .. please review it

    Thanks

RSS feed for comments on this post · TrackBack URI

Leave a Comment