Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE -- launching Word
Message
From
09/05/1997 16:35:27
 
 
To
09/05/1997 12:13:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00030845
Message ID:
00031585
Views:
54
>>>>>
>>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform