General information
Category:
COM/DCOM and OLE Automation
Title:
Error Saving word document
Hello
When I enter the following
loWord=CREATEOBJECT("Word.Application")
loWord.visible=.t.
loDocument = loWord.Documents.Add()
loSelection = loWord.Selection
loSelection.TypeText("hello")
loDocument.SaveAs("hello")
I get this error on the saveas
OLE error code 0x80020005 Type mismatch
this is using Word97 and VFP6.0 SP4
I've looked up this error and it refers me to Visual Studio 97 service packs. Any ideas on what I need here. I don't have Visual Studio 97.
Nick MAson
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