Hi Judy,
The latest version of Word you have is 95. Otherwise, you would be able to use Word.Application. Here is a brief sample:
oword = createobject("word.basic")
oword.fileopen("myfile.doc")
Here is a link to MS online support area that should provide more info:
http://support.microsoft.com/support/kb/articles/Q161/5/47.aspFinally, if you do upgradeto Word 97, I have a series of articles in FoxTalk devoted to automation. (
http://www.pinpub.com/foxtalk)
>Please, I'm looking for the syntax in VFP6.0 to open Word and a file in Word. I've tried:
> oleObj = CREATEOBJECT("WORD.APPLICATION") this give an error
>
> oleObj = CREATEOBJECT("WORD.BASIC") this does not give an error
>
>
> oleobj.documents.open filename:="c:\test.doc" (an existing doc)
> this gives an error
>
>I've hunted through the documentation and can't find a sample. Please point me in the right direction. Thanks
>
>judy scofield