Can you do oWord.Visible = .t. and see it in your Windows task bar after you create the oWord object? If you can't, you may not have Word installed correctly.
Fred On Wed, Aug 12, 2009 at 3:34 PM, Sytze de Boer <sytze.k...@gmail.com> wrote: > Richard, I know I'm iggarant but I know that one (big grin) > It seems to fail on > WAIT WINDOW oWord.UserName > > > > > On Thu, Aug 13, 2009 at 10:26 AM, Richard Kaye <rk...@artfact.com> wrote: > > > I don't think "do my whizzy automation stuff" is a legal VFP command... > <s> > > I just put that there as a placeholder to give you some ideas. > > > > TRY > > oWord = CREATEOBJECT("Outlook.Application") > > m.oWord.Visible=.t. > > messagebox([word is here!],48,[test]) > > CATCH TO m.loError > > IF VARTYPE(m.oWord)<>[O] > > messagebox([no word here!],16,[test]) > > ENDIF > > FINALLY > > ENDTRY > > > > > > rk > > -----Original Message----- > > From: profoxtech-boun...@leafe.com [mailto:profoxtech-boun...@leafe.com] > > On Behalf Of Sytze de Boer > > Sent: Wednesday, August 12, 2009 5:55 PM > > To: profoxt...@leafe.com > > Subject: Re: VFP9-Word/Excel licence > > > > RK > > > > Shows you how iggarant I am > > Why doesn't this work > > > > TRY > > oWord = CREATEOBJECT("Outlook.Application") > > do all my whizzy automation stuff > > CATCH TO m.loError > > IF VARTYPE(oWord)<>[O] > > notify user that word couldn't be found > > ENDIF > > FINALLY > > ENDTRY > > > > S > > > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/3392e7100908121541t5d1e1e9fw5fba7b8ec5e9f...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.