Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Saving word document
Message
De
16/04/2001 02:40:32
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Error Saving word document
Divers
Thread ID:
00495708
Message ID:
00495708
Vues:
67
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform