Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Word Automation
Miscellaneous
Thread ID:
00500349
Message ID:
00500349
Views:
53
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
Map
View

Click here to load this message in the networking platform