A RTF document is edited on the server based off of user inputs on the web page. When the user hits the download button, it creates a word document with some of the sections deleted out of the RTF document.
Now that sections have been deleted, the ToC is incorrect. How do I update the ToC automatically when the word doc is opened ?
Macro doesn't seem to update the ToC automatically.
Php edits the rtf document using str_replace()
and file_put_contents()
Then it downloads it to the user on a website as a doc file
Just want the ToC to update automatically when the user opens the doc, so it doesn't have to be done manually.