Re: NEWERA -- Starting Word
Posted in 1997
>> I may be missing something obvious but >> how do I start Microsoft Word from a button on a NEWERA window and pass >> it a document name. I wouldn't use "RUN" and hardwire in a path. Use the Win32 API function "ShellExecute" (I assume NewEra lets you access the API!): ShellExecute(Handle, 'open', docname, '', '', sw_ShowNormal) This means you haven't even hard-wired in MS Word - it'll use whatever product has been setup to open ".doc" documents. This is a cool function, BTW, pass it a .exe and it'll run a program. Cheers, Kerry S ------------------------------------,------------------------------------------ Kerry Sainsbury, kerry@kcbbs.gen.nz | THE INFORMIX FAQ v2.10 May 1997 Quanta Systems, Auckland | http://www.iiug.org/techinfo/faq/ New Zealand. Work: +64 9 377-4473 | ftp://ftp.iiug.org/pub/informix/faq Home: +64 9 279-3571 | ftp://kcbbs.gen.nz:/pub/informix/