General information
Category:
COM/DCOM and OLE Automation
Title:
Word Automation - Table of Contents
I am trying to create a table of contents using OLE and Microsoft Word through VFP7. I am using standard headers to identify the entries.
Everything worked fine until I began putting section breaks in my code.
Now it seems that the table of contents that is generated is limited to the entries that appear in the last section. This is the code I use to create the table of contents. I have looked for other parameters but there do not seem to be any which would be useful. Any thoughts ?
oRange = oDoc.Range(0,0)
oDoc.TablesOfContents.Add(oRange,6,8)
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only