General information
Category:
COM/DCOM and OLE Automation
Does .FullName work?
For kicks, try working with a doc that has no spaces in the filename. Shouldnt matter but curious.
>Rick,
>
>There is no difference in service packs for Win2000 - one machine has office 97 and the other has office 2000.
>
>I'm working at the command line - nothing else involved -
>
>oWord = CREATEOBJECT("Word.application") works as does
>oDocument = GETOBJECT("C:\My Documents\I247a.doc") works also or at least to the point of making it the document within Word to edit
>
>because when I issue:
>
>oWord.Application.visible = .T. up comes Word with the document I247a as the active document.
>
>Also works:
>
>oWord.Windowstate = 0 so word reacts to at least manipulating the application itself but as soon as I try:
>
>? oDocument.name
>
>or even
>
>? oWord.activeDocument.name
>
>I get the error "OLE error code x800a8029: Unknown COM status code"
>
>It appears that it will let me manipulate the Word Application itself but not act on any document that is opened in Word.
>
>
>I have no anti-virus app currently operating on either system.
>
>HTH's with any diagnosis
>
>Thanks for any help you can provide,
>
>Steve
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only