Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launching MS Word with a document from a command button
Message
De
26/04/1997 21:58:23
 
 
À
26/04/1997 21:37:58
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00029586
Message ID:
00029809
Vues:
35
>>>>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform