Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Talking to MS Word
Message
From
06/09/1997 11:18:09
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00048731
Message ID:
00048823
Views:
43
Hi!

You can detect the copy of Word by finding the window with appropriate
title (i.e Microsoft Word). This can be done with Win32API functions like
FindWindow, GetForeGroundWindow etc. I'm sure that you will find useful
info in UT FAQ (just click on the red dice)
Regarding your second question: you can obtain the full path to MS Word
from registry (I can't recollect the right key there, but you can take a
look ;) and then run it via run command.


> oWord.FileOpen("filename of master merge file")
> oWord.MailMergeToDoc && To do the actual mailmerge
> oWord=null && Disconnect
>
> But I still don't understand how to detect if Word is already running and

> second how to run it once I determine that it is not...
>
> Anybody else?
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer
Previous
Reply
Map
View

Click here to load this message in the networking platform