Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program Hyperlink to Word Document
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00878059
Message ID:
00878856
Vues:
32
Now I have application release problem. I use this routine 100+ times in my program. If I went to "TaskManger" I will see the "WINWORD.EXE" listed 100+. Do you know how to relase the winword.exe for each loop? Thank you very very much for your help.

Thanks, Tai Fei Pao

>>oWord = CREATEOBJECT("Word.Application")
>>oWord.Documents.Add()
>>WITH oWord.ActiveDocument
>> .Hyperlinks.Add(oWord.Selection.Range, "http://www.levelextreme.com/","", "", "Your Text To Display of Hyperlink")
>>ENDWITH
>>oWord.Visible = .t.
>>
>
>..... && Your code here
>
>oWord.DisplayAlerts = 0
>oWord.Close(0)
>oWord.Quit()
>oWord = NULL
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform