Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Auto to Words?
Message
From
01/07/1998 09:02:32
 
 
To
01/07/1998 04:52:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00113235
Message ID:
00113336
Views:
35
Thanks Cetin and all for the info....

>>Hi all,
>>
>>Few questions in my mind :
>>
>>1. 2 ways to connect to Words, using Word.Basic and Word.Application. The latter is using VB script right? So what are the pro and cons? How do I found the commands for both?
>Word.application is valid for word8 where word.basic is valid for both. Word.application uses VB script and also has a wordbasic object if you want to use word.basic commands inline. Word.application is like OOP in VFP and has a wider set of controls, collections etc. For word.basic help is wrdbasic.hlp located in ...\MSOffice\winword, for word8 help is vbawrd8.hlp located in ..\Microsoft Office\Office dir (if install VB option is selected during install).
>>
>>2. I tried the command .FileOpen('xxx.doc') and if my file located in
>>another directory say C:\test, the command .FileOpen('c:\test\xxx.doc') will give me error. Any alternate command?
>By default word looks for the file in \My documents dir. Give the fullpath to open in another dir (.FileOpen('c:\test\xxx.doc')) is true. What's the error ? (You might need to set locale id to English).
>>
>>3. I have also tried .FileNew('xxx.doc') but it always give me error. Is it a valid command?
>It's valid if a "xxx.doc" template exists.
>Cetin
>>
>>Thanks
Previous
Reply
Map
View

Click here to load this message in the networking platform