Reputation: 4070
In Word 2007, you can right-click on a table of contents area and tell it to update its page numbers to point to wherever the current page of that link is. I'd like to do this programmatically, without COM, with the DocumentFormat.OpenXml assemblies. I'm having some troubles Googling it due to the nature of the phrase "table of contents," and can't find much in the namespace to work off of.
Is this possible with those assemblies?
Upvotes: 2
Views: 4935
Reputation: 11445
See this thread on OpenXML Developer:
How to update Word (.docx) TOC?
Upvotes: 2
Reputation: 28290
We have had a long discussion in similar thread regarding generating Table Of Content (TOC) with help of OpneXML SDK 2.0. And there is a solution to achieve that. Look at this thread for details: How to generate Table Of Contents using OpenXML SDK 2.0?
Upvotes: 1