Page 1 of 1
Outlook.Application
Posted: Thu Jan 15, 2015 1:20 pm
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
Re: Outlook.Application
Posted: Thu Jan 15, 2015 3:39 pm
by James Bott
Is Outlook automatically running on boot-up? Can you see it in the task list just after booting (without running it)?
Re: Outlook.Application
Posted: Thu Jan 15, 2015 11:58 pm
by nageswaragunupudi
It is not necessary that outlook must be "running" to use outlook OLE object. It is enough if it is installed.
Re: Outlook.Application
Posted: Fri Jan 16, 2015 5:23 am
by Baxajaun
Thanks James and Mr. Rao !
Then how I know if Outlook is running or not ?
Regards
Re: Outlook.Application
Posted: Fri Jan 16, 2015 6:31 am
by Richard Chidiak
try this
TRY
oOutlook = GetActiveObject( "Outlook.Application" )
CATCH
TRY
oOutlook = CreateObject( "Outlook.Application" )
CATCH oerr
// LOUTLOOK := .F.
END
END
Hth
Re: Outlook.Application
Posted: Fri Jan 16, 2015 8:08 am
by Baxajaun
Richard,
thanks a lot !
Regards