Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Word automation
Message
De
09/12/2003 15:38:43
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Problems with Word automation
Divers
Thread ID:
00857378
Message ID:
00857378
Vues:
92
All,

I'm trying some office automation using word 2000 and VFP7. Been following the book "Office Automation with Visual Foxpro" but not having much luck.
(I have had success working with Excel and Access). 'oWord = CreateObject("Word.Application")' works ok as does 'oDocument = oWord.document.open("name of document")' and certainly 'oWord.Application.Visable = .T.'. I have the document displayed in word. oDocument is created as an object called oDocument with no properties/methods - just the object. And that's as far as it goes. oDocument returns nothing but ole errors. Even the simplest ? "oDocument.Name" gives an ole error - "OLE error code 0x800a8029 Unknown COM status code."

What might be going on?? I would blame it on my install of WIN2000/Office2000 except I have another machine with Word 97/Win2000 and it does the same thing. Anybody got some suggestions as to what I may be doing wrong??

Steve
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform