General information
Category:
Coding, syntax & commands
Title:
WORD.BASIC and OLE Bound Control
I am having difficulties with OLE automation and MS Word.
I know that in order to access any of the Word functions you have to create the OLE object as Word.Basic and not Word.Document.6. However how do you force the type to be Word.Basic on already existing objects?
For example, I did the following:
APPEND GENERAL worddoc FROM junk.doc CLASS "Word.Basic"
oForm = CREATEOBJ( "FORM" )
oForm.ADDOBJECT( "OLEWord", "OLEBOUNDCONTROL" )
oForm.OLEWord.ControlSource = "DATABASE.worddoc"
I've tried the append with and w/out the quotes. Apparently the system cannot open a document as type word.basic, however I don't know how you can "FileOpen" from a database file w/out having to create a temp file and reappend the file upon completion of the task
(Just want to be able to issue oForm.OLEWord.FilePrintDefault)
Thanks in advance for any assistance in this matter.
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