>>>>>>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