Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Word automation
Message
From
10/12/2003 16:53:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
10/12/2003 13:37:32
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00857378
Message ID:
00857877
Views:
25
>Cetin,
>
>you certainly illuminated the problem!!
>
>Trying the add actually did create a connection object that returned the name (Document1).
>
>That means the oDocument.GetObject("C;\My Documents\I247a.doc") is not really working as it should although it does return an object.
>
>Tried oWord.Documents.open("C:\My Documents\I247a.doc") also and that doesn't work. So I'm stuck with a loading issue. Changed directories to avoid blank spaces (put it in a directory called "Downloads" and still no go. Can work on the document in word and save and everything but not load via automation. Wish you had a solution for that!!

Don't know what's your oWord object, I'm usually creating it as
This.oword= Createobject("Word.Application")
and then
This.oword.documents.Open(This.cdocfilename)
where this.cDocFileName is a full path to the file. The other way is to have oDoc=getobject(cFullPathToDoc). I think you've tried wrong combinations of these.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform