Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating Table of Contents
Message
 
To
06/02/2006 13:50:07
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01094044
Message ID:
01094398
Views:
15
Frank,

I assume that you are using Word Automation. As usual, you may record a macro in MS Word, review its code, and translate to VFP.
Other than that, there is a table object in the document, and you can work with it, like adding rows, typing text in cells, etc:
....
with oword.ActiveDocument.Tables(1)
          .Rows.Add
          .Cell(1,1).Range.Text="HELLO"
......
>Hi,
>
>I create a Word Document based on a template. The template has a table of contents in it that I need to update after creating the document. I can't work out how to do this, can anybody give me a hand, please?
>
>Thanks,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform