>Does anyone know the commands to start Word 97, open a file, and then print it using OLE from Visual FoxPro? I can get it to work with older versions of Word, but with Word 97 I can only create the object, and make it visible. The code I am using is as follows:
>
>ox=createobject('word.document') && this works fine
>ox.application.visible=.t. && this also works
>ox.fileopen(thisfile) && this returns an unknown name error
Might it be possible that the syntax of thisfile as changed in Word 97?