Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 27 AUG 1999 05:04:05AM KSF wrote:

How can I get my application to open a word_file in Word.

I use:

Word_exe =setup

ObjectName =Word_exe …?

returnvalue=Utility("RUNWIN", ObjectName)

,where setup contains the path to Winword.exe.

Regards

KSF


At 27 AUG 1999 05:54AM Oystein Reigem wrote:

KSF,

You can either RUNWIN the Word exe, e.g,

RetVal=UTILITY( "RUNWIN", FullPathNameForMSWord : ' ' : FullPathNameForDocFile )

or just the .doc file you want to show, e.g.,

RetVal=UTILITY( "RUNWIN", FullPathNameForDocFile )

and Windows file association will take care of the rest.

But in any case you must avoid long file/folder names (and names with spaces in them), because OI (and every OI app) is a 16-bit program that only understands old-fashioned 8.3 file names. So you might have to use the "MS-DOS names" of the files and folders in question, e.g,

RetVal=UTILITY( "RUNWIN", "C:\PROGRA~1\MICROS~2\OFFICE\WINWORD.EXE C:\STUFF\WORK\LETTER~1.DOC" )

I know you now already have new questions, but try to do a search. There must be lots of postings about this stuff.

- Oystein -

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/472577321299015e852567da0031d01e.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1