Page 1 of 1

Fivewin OLE with Outlook

Posted: Thu Oct 03, 2019 3:32 pm
by byron.hopp
All,

I have been using Fivewin to bring up Outlook from 2010 using either of the following functions:

Function GetOutlookObject()
Local oOutlook := Win_OleGetActiveObject( "Outlook.application" )
If oOutlook == nil
oOutlook := Win_OleCreateObject( "Outlook.application" )
Endif
If oOutlook == nil
oOutlook := CreateObject( "Outlook.Application" )
Endif
If oOutlook == nil
MsgStop( "Unable to retrieve the Outlook Application Object...","GetOutlookObject()" )
Endif
Return oOutlook

Function GetOutlookObjectNew()
Local oOutlook := nil
Try
oOutlook := FwGetOleObject( "Outlook.application" )
MsgWait( "Outlook was open by FwGetOleObject!","Info",2 )
Catch
Try
oOutlook := CreateObject( "Outlook.application" )
MsgWait( "Outlook is open now by CreateObject!","Info",2 )
Catch
MsgAlert( "Cannot open outlook" )
End
End
If oOutlook == nil
MsgAlert( "oOutlook is nil" )
Endif
Return oOutlook

Both seem to work great, however when using Outlook from Office 2016 oOutlook is always nil weather attempting to get the active object, or attempting to launch it and then get the object. Anybody know any magic to make the newer one work? Also the print preview in FWH does not seem to launch the new version as well ("@" button).

Thanks in advance,

Byron ...

Re: Fivewin OLE with Outlook

Posted: Sun Oct 20, 2019 12:37 am
by Jimmy
hi,

is your Office 2016 64 Bit or 32 Bit Version :?:

Re: Fivewin OLE with Outlook

Posted: Mon Mar 23, 2020 3:40 am
by byron.hopp
It's been long. My outlook is 32 bit running on 63 bit os.

Re: Fivewin OLE with Outlook

Posted: Mon Mar 23, 2020 9:07 am
by Maurizio
hey Jimmy
Sorry if I bother you ,
I see that you use List&Label , do you use it with Harbour ?

Maurizio
www.nipeservice

Re: Fivewin OLE with Outlook

Posted: Mon Mar 23, 2020 12:12 pm
by karinha
Check this out:

As a best practice, you should only have one version of Office installed on a computer. For migration scenarios, we realized that there may be a need to have multiple versions of Office on the same computer for a short period of time. We recommend that you uninstall the previous version of Office shortly after you have migrated to the latest version of Office. Uninstall the previous version of Office using the Control Panel Programs and Features by following these steps.
Open the Control Panel.
Under Programs, select Uninstall a program.
In the Programs and Features window, select the previous version of Office, and then click Uninstall.
Follow the instructions provided in the Office installer interface to remove Office.

Regards, saludos.

Re: Fivewin OLE with Outlook

Posted: Mon Mar 23, 2020 5:25 pm
by byron.hopp
Looking under "Programs and Features" -
I only have one version of Office on my desktop:
Microsoft Office Professional Plus 2016 - en - us
It is a 32 bit version, my OS is 64 bit (not 63 :->).
Is this the problem, or should it work 32 bit running on 64 bit OS?

Re: Fivewin OLE with Outlook

Posted: Mon Mar 23, 2020 6:08 pm
by byron.hopp
What is List&Label? How could you tell he was using it?

Re: Fivewin OLE with Outlook

Posted: Mon Mar 23, 2020 7:16 pm
by byron.hopp
What is List&Label? How could you tell he was using it?