Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
Hello,
I'm using a template which has a Table of Contents after the title of the document.
I want to update it when I finish the creation but I don`t know how. I see that it exists a addTableContents method,
and it updates my own TOC but it creates another one at the end of the document.
Is there any way to do only the update?
Thanks.
Hello,
There's no method to update the table of contents in an existing document. Due to how Word works you need to do that with a macro.
Regards.