MAPIOBJECT at Application level

Add-in Express™ Support Service
That's what is more important than anything else

MAPIOBJECT at Application level
 
Subscribe
Tim Winstanley




Posts: 4
Joined: 2024-02-12
According to :-https://dimastr.com/redemption/rdosession.htm
I should be able to link up a RDOSession with the outlook application.mapiobject. As far as I can see add-in express is built using the Outlook2000 interfaces so this isn't possible (although I have tried typecasting to the Outlook2010 interface - not implemented)

I think I'm missing something obvious - how do I implement the code to grab the MAPIOBJECT at application level?


VB code - but the principle is pretty similar to the Delphi equiv....

'use the same MAPI object as Outlook
'Namespace is returned from Application.GetNamespace("MAPI") in OOM
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Namespace.MAPIOBJECT
Posted 12 Feb, 2024 23:11:42 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Hello Tim,

As your example suggests, you need to use the MAPIOBJECT property of the Namespace object. This property is not available in Outlook 2000. You need to import the type library for Outlook 2010 or above; find an example of importing and using the Outlook 2010 type library at http://www.add-in-express.com/forum/read.php?FID=1&TID=12731&MID=64876#message64876.

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 13 Feb, 2024 10:02:18 Top
Tim Winstanley




Posts: 4
Joined: 2024-02-12
Thanks Andrei - pointed me in the right direction

Tim
Posted 13 Feb, 2024 12:26:34 Top
Andrei Smolin


Add-in Express team


Posts: 18830
Joined: 2006-05-11
Welcome!

Regards from Poland (GMT+1),

Andrei Smolin
Add-in Express Team Leader
Posted 13 Feb, 2024 14:42:43 Top