Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE with MS Word
Message
From
03/02/1999 12:01:30
 
 
To
03/02/1999 11:55:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00183498
Message ID:
00183500
Views:
20
Hi Judy ---

Which version of Word? If Word97 or better, it's VBA and you'll find help on it in Word Help...if it's before, it's Word Basic and there also should be help in Word....there are several white papers at microsoft.com that should help you with Word Basic.



>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
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform