Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Word automation
Message
De
10/12/2003 16:53:39
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
10/12/2003 13:37:32
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00857378
Message ID:
00857877
Vues:
24
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform