General information
Category:
Coding, syntax & commands
Farouk,
I'm at home and I haven't worked with the OLE to Word in a while. I have a cheat sheet containing how to open files, change page layout (margins, page sizes), fonts, indent, paragraphs etc. When I get back to work on Monday, I will paste a copy to you. Just joined UT and I may be able to email to you also.
Robert.
>Thanks Robert. What is the command to open a file that reside in different
>directory from my EXE directory? I have tried FileOpen('\zzz\zzz.doc') but
>gives error message.
>
>Regards,
>Farouk Yew Abdullah
>
>
>
>>
>>>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?
>>>
>>>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?
>>>
>>>3. I have also tried .FileNew('xxx.doc') but it always give me error. Is
>it a valid command?
>>>
>>>Thanks
>>
>>
>>I'm using this all the time:
>>local oWord
>>oWord = getObject('', 'word.basic')
>>oWord.fileNew()
>>
>>...
>>oWord.fileSaveAs("path & file name here", 9)
>>
>>The '9' above saves it in a older Word format due to the fact we have both
>Office 97 and Office 4.2 here.
>>
>>Robert
Previous
Next
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