Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Word automation
Message
 
To
09/12/2003 15:38:43
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00857378
Message ID:
00857397
Views:
24
What are:

?type("oDocument")
?isnull(oDocument)


>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform