OutlookApp Reference

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

OutlookApp Reference
 
Bryan Smith




Posts: 8
Joined: 2006-09-03
How do I obtain a reference to the current Outlook Application Object from within an Outlook Express Add-in?
Posted 05 May, 2007 12:00:08 Top
Nicholas Glasier




Posts: 110
Joined: 2005-02-12
In your AddinModule it is found in Self.OutlookApp.WhateverPropertyYouWant.
If you want to access it form a form you've created thats a different matter.
Nick
Posted 05 May, 2007 19:19:42 Top
Bryan Smith




Posts: 8
Joined: 2006-09-03
Ok, how would I access it from within my form. Cand I just drop a Delphi TOutlookApplication component on the form, or will this create a new different instance.
Posted 07 May, 2007 14:43:54 Top
Nicholas Glasier




Posts: 110
Joined: 2005-02-12
One way is to create a reference to your AddinModule in your Forms OnCreate event. There is a code sample in an early message on this board:

http://www.add-in-express.com/forum/read.php?FID=1&TID=90

You could also try creating a global variable to represent your AddinModule in the Addinmodule unit and then put that unit in your forms uses clause so you can reference it from the form.
Code for that is on this board here:

http://www.add-in-express.com/forum/read.php?FID=1&TID=1038&MID=4855#message4855

In either case once you have a refence to the AddinModule you can then access its OutlookApp property.

Regards, Nick
Posted 07 May, 2007 17:07:14 Top
Dmitry Kostochko


Add-in Express team


Posts: 2752
Joined: 2004-04-05
Hi Bryan and Nick,

2Nick: Thank you for your help.

2Bryan: Do you still need any help with the issues?


Posted 08 May, 2007 07:03:56 Top