General information
Category:
COM/DCOM and 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.
Previous
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