Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Launching MS Word with a document from a command button
Message
From
26/04/1997 21:58:23
 
 
To
26/04/1997 21:37:58
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00029586
Message ID:
00029809
Views:
33
>>>>>>How would one go about launching MS Word with a document by clicking on a command button in FPW 2.6?
>>>>>
>>>>>RUN /N7 WORD.EXE
>>>>
>>>>I would favor using OLE automation as you have much more control over Word if you create it as an object.
>>>
>>>Could you elaborate on how to do this? Many thanks!
>>>
>>>Bryan
>>Sure ....
>>oWorddoc=CreateObj('word.application')
>>oWorddoc.documents.open('mydoc.doc')
>>oWorddoc.visible
>
>Is this FPW 2.6? :))
>
>Vlad
Sorry, it's Vfp.
To run word from 2.x you need to use the run /n winword.exe mydoc.doc .... don't use the quotes. It works well!
Allen Burlingame
Quarter Note Programming specializing in Visual Foxpro and
PowerBuilder Applications. Client Server Projects are what
we consider fun!
abgame@ni.net
Previous
Reply
Map
View

Click here to load this message in the networking platform