General information
Category:
COM/DCOM and OLE Automation
I am simply trying to open a word document in an OLE control in foxpro. Im not sure the proper way to do this. Every thing in the following sample works until I try to open the existing document. Am I on the right track or should I be approaching this from another angle?
THISFORM.ADDOBJECT('OleLetter','OleControl','WordDocument')
THISFORM.oleLetter.LEFT=30
THISFORM.oleLetter.TOP=80
THISFORM.oleLetter.HEIGHT=244
THISFORM.oleLetter.WIDTH=410
THISFORM.oleLetter.VISIBLE=.T.
oWordObj=THISFORM.OleLetter.object.application
owordobj.Documents.Open FileName:="c:\foxword\test.doc"
THISFORM.OleLetter.DOVERB(0)
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