Word Automation
Back to TOCAll TopicsCondensed TOC
Automating the Office Word client application is sometimes the only way to accomplish certain tasks.
- Exploring Tables-of-Contents in Open XML WordprocessingML Documents (Part 3)
- Updating the TOC in a WordprocessingML Document using an AutoOpen Macro
In this screen-cast, I show how you can use Word Automation to open and save the document, thereby causing all fields to be updated, including the TOC. (Video)
In the screen-cast that I present in this post, I show how you can add a TOC using the Open XML SDK, and then modify the normal.dotx, adding a macro, so that whenever you open a document that contains a TOC, Word repaginates the document and updates the TOC. (Video)