Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE with MS Word
Message
 
 
To
03/02/1999 11:55:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00183498
Message ID:
00183818
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform