I have had a deep look into using ActiveX to open MS Word.
It works fine, BUT...
How does one create a new MS Word document?
If anyone out there knows the proper syntax, please help.
For using OLE commands there is a good example of this on the www.dotr.com website.
But simply to open an existing word document you need the following commands:
DEF VAR chWordApplication AS COM-HANDLE NO-UNDO.
create "Word.Application" chWordApplication.
chwordapplication:visible = true.
chWordApplicationocuments:Add("c:\adr.doc", 0). /* where adr.doc is your document name! */
To open an empty word document you need the following commands:
DEF VAR chWordApplication AS COM-HANDLE NO-UNDO.
create "Word.Application" chWordApplication.
chwordapplication:visible = true.
chWordApplicationocuments:Add().
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.