Hi,

I have a .doxc document that already has an existing table of contents and some pages with text.

I want to open the document and add some more pages with headers and texts etc. Before I save and close the document - is there a way of refreshing the toc so that it is up to date?

I want it to be handled in C# code.

Using the OpenXML SDK 2.0 and vs 2008 c#.

Cheers!