1. Robert Umpleby
  2. PowerBuilder
  3. Wednesday, 20 March 2024 13:32 PM UTC

User have the option in Microsoft Outlook to click on the text in the upper right of their outlook "Try the New Outlook".  When they click that it closes older outlook and opens outlook in a newer look and feel.  

This breaks the Powerbuilder code below.

 

ole_outlook        = create oleobject

 

i_rc = ole_outlook.connecttonewobject("outlook.application")

returns -3 which means Object could not be created

 

Is there a workaround or newer connecttonewobject command in Powerbuilder  for newer outlook?

 

 

Outlook

 

 

Revert New Outlook back to the old outlook the powerbuilder code works.

Not sure how much time we have until the old Microsoft outlook goes away and we only have the newer outlook available from Microsoft.  

I have also tired and it throws a -3 in the newer outlook also.

i_rc = ole_outlook.connecttonewobject("outlook.application.16")

returns -3 which means Object could not be created.

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 20 March 2024 14:36 PM UTC
  2. PowerBuilder
  3. # 1

Hi Robert;

  I suspect that the new Outlook has deleted the InProcessServer32 registry entries that the OLE communication requires. I have heard that Microsoft is un-bundling the new Outlook from Office 365. So that might have something to do with this O/S change (just my best guess ATM).

  You  might want to consider using the older built-in MAPI email interface or the new SMTP email interface going forward. Food for thought.  ;-)

HTH

Regards ... Chris

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.