I need to adapt the creation of a Word which is created from a VB program. I need to add heading one paragraphs with tabs, chaneg the color and add TC fields (shows text under heading in table of contents, without page Nr)
When the TOC is inserted, i need to loop through all TOC heading one, and change the color based on the text after first tabe stop.
I have inserted an Winword and PDF sample to check.
This requires knowledge of the winword DOM for table of contents