FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Fivewin OLE with Outlook
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Fivewin OLE with Outlook
Posted: Thu Oct 03, 2019 03:32 PM

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 ...

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Fivewin OLE with Outlook
Posted: Sun Oct 20, 2019 12:37 AM

hi,

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

greeting,

Jimmy
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Fivewin OLE with Outlook
Posted: Mon Mar 23, 2020 03:40 AM

It's been long. My outlook is 32 bit running on 63 bit os.

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM
Re: Fivewin OLE with Outlook
Posted: Mon Mar 23, 2020 09:07 AM

hey Jimmy
Sorry if I bother you ,
I see that you use List&Label , do you use it with Harbour ?

Maurizio

www.nipeservice

Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Fivewin OLE with Outlook
Posted: Mon Mar 23, 2020 12:12 PM

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.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Fivewin OLE with Outlook
Posted: Mon Mar 23, 2020 05:25 PM

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?

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Fivewin OLE with Outlook
Posted: Mon Mar 23, 2020 06:08 PM

What is List&Label? How could you tell he was using it?

Thanks,

Byron Hopp

Matrix Computer Services
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Fivewin OLE with Outlook
Posted: Mon Mar 23, 2020 07:16 PM

What is List&Label? How could you tell he was using it?

Thanks,

Byron Hopp

Matrix Computer Services

Continue the discussion