Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for instance of Word already running
Message
From
09/04/2002 15:44:19
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Checking for instance of Word already running
Miscellaneous
Thread ID:
00642865
Message ID:
00642865
Views:
52
Is it possible to check for, and if it exists use, an existing instance of Word from within my VFP program.

In the init of my form I create a Word object thusly,
oWord = CreateObject("Word.Application")
Then, when I release the form I release the Word object,
release oWord
The problem is that I end up with multiple instances of Word running for each time that the form is opened.

I can do a oWord.application.quit, but then if there the user was editing a document outside of my application there would be unintended consequences.
On a CLEAR day you can see forever.
Next
Reply
Map
View

Click here to load this message in the networking platform