Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement