Outlook.Application

Post Reply
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Outlook.Application

Post by Baxajaun »

Dear friends,

with this code :

Code: Select all

    if FWGetOleObject( "outlook.application" ) == nil
          MsgInfo( "outlook is not available" )
       else  
          MsgInfo( "outlook is available" )
       endif
always "Outlook is available".

Any idea ?

Best regards
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Outlook.Application

Post by James Bott »

Is Outlook automatically running on boot-up? Can you see it in the task list just after booting (without running it)?
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Outlook.Application

Post by nageswaragunupudi »

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
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Outlook.Application

Post by Baxajaun »

Thanks James and Mr. Rao !

Then how I know if Outlook is running or not ?

Regards
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: Outlook.Application

Post by Richard Chidiak »

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
User avatar
Baxajaun
Posts: 853
Joined: Wed Oct 19, 2005 2:17 pm
Location: Gatika. Bizkaia

Re: Outlook.Application

Post by Baxajaun »

Richard,

thanks a lot !

Regards
Post Reply