Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening existing Word doc in OLE container control
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Opening existing Word doc in OLE container control
Miscellaneous
Thread ID:
00256395
Message ID:
00256395
Views:
61
I would like to open an existing MS Word document on a VFP form to provide a crude help file for my application. If possible I would like the users to be able to basic Word functionality like Find and Print.

I dropped an OLE Control on my form and attempted to open the document with the following:
thisform.oleWord.Visible = .T.
thisform.oleWord.object.Documents("C:\mydoc\help.doc").Open

But I keep getting the dreaded "OLE error code ... unknown name" error.

Can anyone show me where I am going wrong?

Thanks!
Vern
Next
Reply
Map
View

Click here to load this message in the networking platform