Information générale
Catégorie:
Codage, syntaxe et commandes
>>>>>
>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement