Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE -- launching Word
Message
De
09/05/1997 16:35:27
 
 
À
09/05/1997 12:13:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00030845
Message ID:
00031585
Vues:
52
>>>>>
>>>>Don't think this will work. When VFP shuts down all objects are released and word will shut down. Think to get this behavior you must do the RUN command.
>>>
>>>Thats is what it seems should work but when I run this code and exit VFP, the Word that was started stays out there.
>>>
>>If you want to make sure everything is shut down when vfp quits create cod e for the on shutdown command that closes any open ole applications before quitting.
>
>Eugene, could you give me that tip again? I haven't had a chance to try either it or the RUN command yet. Todd, doesn't RUN require the full path back to the apllication? I don't know how or where users will have Word installed.
>
>Thanks guys,
>
>Ross


Here you go Ross. When I run this it does what you are asking for. Even though I start this in VFP, it stays running even after I leave VFP. If you want to close it out within VFP then include this line..."loWord.appclose()"

loWord = GETOBJECT("", "word.basic")
loWord.appshow()

GeneS
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform