Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Talking to MS Word
Message
De
06/09/1997 11:18:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00048731
Message ID:
00048823
Vues:
38
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform