[[https://www.revelation.com/|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]]
==== Opening a word_file (OpenInsight Specific) ====
=== At 27 AUG 1999 05:04:05AM KSF wrote: ===
{{tag>"OpenInsight Specific"}}
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 -
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=472577321299015E852567DA0031D01E|View this thread on the forum...]]