Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating Table of Contents
Message
 
À
06/02/2006 13:50:07
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01094044
Message ID:
01094398
Vues:
14
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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform