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