bazzer747 25 Posted May 8, 2021 Hi, When I create emails in Outlook using below code they all work without a problem. I'm using Office365, so the latest version of Outlook. However, when that same code is executed on a different PC, and one that uses Outlook 2013, I get 'Server execution failed, ProgID: 'Outlook Application' The start code for the email application is: try Outlook:= GetActiveOleObject('Outlook.Application'); except Outlook:= CreateOleObject('Outlook.Application'); end; When I google I get various replies to this issue (some of which are not a solution here), but wondered if any Delphi guys have hit this problem and know of a solution. Maybe a different way to open an Outlook instance? Share this post Link to post
FPiette 383 Posted May 8, 2021 4 hours ago, bazzer747 said: same code is executed on a different PC, and one that uses Outlook 2013, I get 'Server execution failed, ProgID: 'Outlook Application' On that computer, using RegEdit, search if the key "HKEY_CLASSES_ROOT\Outlook.Application" exists. There could also be version specific keys such as "HKEY_CLASSES_ROOT\Outlook.Application.16". Share this post Link to post
bazzer747 25 Posted May 26, 2021 Hi, Sorry it took so long, just been able to get to my client to take a look at his registry. There are 2 entries: Outlook.Application - Microsoft Outlook 15.0 Object Library and Outlook.Application 15 - Microsoft Outlook 15.0 Object Library Share this post Link to post