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.
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 |
Explains the markup of tables-of-contents. TOCs use field markup. |
|
Presents some sample code that shows how to insert TOC markup into a document. |
|
Shows how to use Word Automation to update the TOC. |
|
Shows how to use Word Automation Services to update the TOC. |
|
Shows how to use an AutoOpen macro to update the TOC whenever any document that contains a TOC is opened. |
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 […]
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.
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