Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Work with only one Instance of Word
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00658782
Message ID:
00659166
Views:
28
>So I would prefer to use:
>
>oDoc = GetObject(lcDocument, "Word.Application")
>
>Right?

I think the best solution for you is probably going to be something along the lines of using GETOBJECT without the document name to get a reference to Word. Then use something like Word's Documents.Count property to find all the open documents, and see if any of them is the one you're looking for. The problem is, when I've tried to check the Documents.Count property with a document already open, it's reporting back a count of 0. That's why I was hoping someone else who's worked with manipulating Word more than I have would jump in.
Previous
Reply
Map
View

Click here to load this message in the networking platform