Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE with MS Word
Message
 
À
03/02/1999 11:55:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00183498
Message ID:
00183818
Vues:
15
Hi Judy,

The latest version of Word you have is 95. Otherwise, you would be able to use Word.Application. Here is a brief sample:

oword = createobject("word.basic")
oword.fileopen("myfile.doc")

Here is a link to MS online support area that should provide more info:

http://support.microsoft.com/support/kb/articles/Q161/5/47.asp

Finally, if you do upgradeto Word 97, I have a series of articles in FoxTalk devoted to automation. (http://www.pinpub.com/foxtalk)


>Please, I'm looking for the syntax in VFP6.0 to open Word and a file in Word. I've tried:
> oleObj = CREATEOBJECT("WORD.APPLICATION") this give an error
>
> oleObj = CREATEOBJECT("WORD.BASIC") this does not give an error
>
>
> oleobj.documents.open filename:="c:\test.doc" (an existing doc)
> this gives an error
>
>I've hunted through the documentation and can't find a sample. Please point me in the right direction. Thanks
>
>judy scofield
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform