FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Outlook.Application
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Outlook.Application
Posted: Thu Jan 15, 2015 01:20 PM
Dear friends,

with this code :

Code (fw): Select all Collapse
    if FWGetOleObject( "outlook.application" ) == nil
          MsgInfo( "outlook is not available" )
       else  
          MsgInfo( "outlook is available" )
       endif


always "Outlook is available".

Any idea ?

Best regards
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Outlook.Application
Posted: Thu Jan 15, 2015 03:39 PM

Is Outlook automatically running on boot-up? Can you see it in the task list just after booting (without running it)?

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Outlook.Application
Posted: Thu Jan 15, 2015 11:58 PM

It is not necessary that outlook must be "running" to use outlook OLE object. It is enough if it is installed.

Regards



G. N. Rao.

Hyderabad, India
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Re: Outlook.Application
Posted: Fri Jan 16, 2015 05:23 AM

Thanks James and Mr. Rao !

Then how I know if Outlook is running or not ?

Regards

Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: Outlook.Application
Posted: Fri Jan 16, 2015 06:31 AM

try this

TRY
oOutlook = GetActiveObject( "Outlook.Application" )
CATCH
TRY
oOutlook = CreateObject( "Outlook.Application" )
CATCH oerr
// LOUTLOOK := .F.
END
END

Hth

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 990
Joined: Wed Oct 19, 2005 02:17 PM
Re: Outlook.Application
Posted: Fri Jan 16, 2015 08:08 AM

Richard,

thanks a lot !

Regards

Continue the discussion