Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word objects
Message
From
18/01/2010 20:04:59
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01444602
Message ID:
01444661
Views:
45
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform