Opening a word_file (OpenInsight Specific)
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 -