General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only