General information
Title:
OLE Control of Word 97
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
TIA
Rick
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only