Fivewin OLE with Outlook

Fivewin OLE with Outlook

Postby byron.hopp » Thu Oct 03, 2019 3: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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Fivewin OLE with Outlook

Postby Jimmy » Sun Oct 20, 2019 12:37 am

hi,

is your Office 2016 64 Bit or 32 Bit Version :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Fivewin OLE with Outlook

Postby byron.hopp » Mon Mar 23, 2020 3:40 am

It's been long. My outlook is 32 bit running on 63 bit os.
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Fivewin OLE with Outlook

Postby Maurizio » Mon Mar 23, 2020 9: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
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Re: Fivewin OLE with Outlook

Postby karinha » 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
User avatar
karinha
 
Posts: 7835
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Fivewin OLE with Outlook

Postby byron.hopp » Mon Mar 23, 2020 5: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
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Fivewin OLE with Outlook

Postby byron.hopp » Mon Mar 23, 2020 6:08 pm

What is List&Label? How could you tell he was using it?
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Fivewin OLE with Outlook

Postby byron.hopp » Mon Mar 23, 2020 7:16 pm

What is List&Label? How could you tell he was using it?
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 95 guests