Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
Problems with Word automation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement