Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Launching Word or WP from VFP
Message
De
24/04/1999 21:02:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00211600
Message ID:
00211949
Vues:
42
>>Whoops. Typo. Thanks, Cetin..you are correct Documents not Document.
>>
>>>>
>>>>Try this (might need some small changes) (for Word97)
>>>>
>>>>oWord=CREATEOBJECT("Word.Application")
>>>>oWord.Document.Open("Filename",,.T.)
>>>>
>>>>The third parameter is ReadOnly. Now VB help shows it as a variant so .T. may not work....
>>>>
>>>>
>>>AFAIK .t. and 1 works :) Just I think it would be "oWord.Documents.Open" not sure.
>>>Cetin
>
>John, Cetin...thanks for the help, it works like a charm.
>
>My only other question is..where can I go to learn some of this syntax stuff for launching other apps from VFP? Suppose, for example, I now need to do some work with Excel.
>
>TIA

Pretty good examples of how to do this come with VFP in the solutions app sample. To get further, both Word and Excel have VBA editors accessible from the tools menu. YOu can use these editors tolook at macros you record in the program to see how to perform those actions progrmmatically. Once you havethe VBA ode, translation to VFP automatoin code isn't difficult at all.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform