Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Saving word document
Message
From
16/04/2001 02:40:32
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Error Saving word document
Miscellaneous
Thread ID:
00495708
Message ID:
00495708
Views:
66
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
Map
View

Click here to load this message in the networking platform