Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing Windows...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00309404
Message ID:
00309458
Vues:
30
>Hi George,
>I do have it looking for 'Microsoft Word', and like I said, it works fine, but if I (the user) closes Word by clicking the top right check box, for example, Word seems to close, but in the task list, 'Winword' is listed. The next time I try to open a Word file, it acts like it found 'Microsoft Word' with your procedure and doesn't issue another oword=create("word.application"), but when it skips the create command and goes directly to the with endwith oword commands, it doesn't recognize oword as being Word. follow me? So Strange.
>Is there a command to close that 'Winword' that is listed? To get it out of there? I don't really understand your last suggestion as I'm quite new at this stuff. Thanks so much.

Mary Ann,

Probably issuing oWord.Quit() plus oWord = NULL. The trick is going to be determining what's a server reference and what isn't. If 'winword' is hanging around without a visible reference, the user has quit. What's keeping that around is VFP. Once the above is issued, the reference should go away.

Let me know if this does it, please.

With my problem, however, the above doesn't work, apparently because the FOR EACH to iterate the cell range in Excel doesn't properly release the reference. The only way out with that is that you have to issue CLEAR ALL or QUIT, neither of which is desirable.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform