Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word objects
Message
De
18/01/2010 20:04:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01444602
Message ID:
01444661
Vues:
44
>answer
>
>oWord = CREATEOBJECT('word.application')
>oWord.Visible= .T.
>od= oWord.documents.open("c:d\tax\stmt2.doc")
>oshape =oWord.ActiveDocument.Shapes
>otable =oshape.Item(1)
>oT =oshape.Item(1)
>ot.Select
>oWord.Selection.Tables(1).Select
>oWord.Selection.Copy

Go on... you're doing fine. Even better than if I answered :).

Missing a "stay tuned... to be continued" in the end.

On a more serious note, yes, Word's DOM is somewhat confusing and has several serious misnomers (or else you would immediately have found what you were looking for, in something named more appropriately than "shapes"), but after some zigzagging and hair pulling, you eventually find what you need.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform