Information générale
Catégorie:
COM/DCOM et OLE Automation
I'm having problems with getting Word to do
anything via VFP. I'm using Word 6.
I keep getting a "Member Not Found" error
for example
********
loAppSearch=CREATEOBJECT("Word.document.6")
AppSearch=loAppSearch.FileSearch
* or
*******
ox = createobject("word.document")
With OX
mydoc = .Document.Add
EndWith
MyDoc.SaveAs FileName:="C:\Temp.doc"
********
* or
ox = createobject("word.document")
ox.FilePageSetup.PaperSize = 'Letter'
***
All which seem like simple routines but I can't get
them to work. CreateObject seems to be working
but as soon as I try to do something I get a
Ole Exception error 0x80030003 Member not found
Seems like something simple needs to be set to
get this going but I can't figure it out.
Any help would be appreciated.
Regards - D.
Précédent
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