Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get all DocVariable from a .DOC
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00684516
Message ID:
00684613
Vues:
25
Oops missed the .Name ;)

>Hi Jean-René
>
>I don't know of a method, but Document.Variables is a collection.
>There is a property .Count that should hold the number of variables and you can also access it by a numeric index too.
>
>It as well has a property .Name, so a loop in VFP should do the trick.
>
>
>toWord = CreateObject("application.word")
>For i = 1 to toWord.ActiveDocument.Variables.Count
>lcname = toWord.ActiveDocument.Variables.Name(i)
>...
>EndFor
>
>
>HTH
>Markus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform