Multiple mailbox's

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

Multiple mailbox's
How to find out when there are many mailbox's in Outlook? 
Dave O'Brien




Posts: 44
Joined: 2019-09-02
I am new to Add-in express, and I can't find a way to enumerate the stores in Outlook:
Something like for i := 0 to OutlookApp.Stores.Count - 1;


How are multiple stores handled?


Regards,
Dave.
Posted 20 Oct, 2019 21:02:02 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Dave,

Stores are available via Namespace.Stores starting from Outlook 2007. This is part of the Outlook object model (OOM). The current state of OOM you can find at https://docs.microsoft.com/en-us/office/vba/api/overview/outlook.


Andrei Smolin
Add-in Express Team Leader
Posted 21 Oct, 2019 02:29:54 Top
Dave O'Brien




Posts: 44
Joined: 2019-09-02
Do you have an example of how to access the stores property? I cannot find it using OutlookApp.

I can see AddStore and RemoveStore, but no Stores property.
Posted 21 Oct, 2019 20:58:56 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Dave,

You need to import the type library of the minimal Outlook version that you need to support. Please have a look at https://www.add-in-express.com/forum/read.php?FID=1&TID=12731&MID=64876#message64876.


Andrei Smolin
Add-in Express Team Leader
Posted 22 Oct, 2019 02:51:12 Top
Dave O'Brien




Posts: 44
Joined: 2019-09-02
Thanks, now I am getting:
Declaration of OptionsPagesAdd differs from previous declaration.

procedure OptionsPagesAdd(ASender: TObject; const Pages: PropertyPages); override;
Posted 22 Oct, 2019 14:53:39 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Dave,

procedure OptionsPagesAdd(ASender: TObject; const Pages: Outlook2000.PropertyPages); override;


This requires having Outlook2000 in the uses section.


Andrei Smolin
Add-in Express Team Leader
Posted 24 Oct, 2019 04:10:26 Top
Dave O'Brien




Posts: 44
Joined: 2019-09-02
This all seems a bit messy, are you likely to move to ol2010 or later as a base anytime soon?
Posted 05 Nov, 2019 20:31:11 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Dave,

No. Add-in Express is built on the type library of Office 2000. This is essential for support of all Office versions.


Andrei Smolin
Add-in Express Team Leader
Posted 06 Nov, 2019 03:26:07 Top
Dave O'Brien




Posts: 44
Joined: 2019-09-02
Are people really still using Office 2000 or less?
Posted 06 Nov, 2019 14:15:59 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Dave,

I'm sure, some are using it. And we need to support it.


Andrei Smolin
Add-in Express Team Leader
Posted 11 Nov, 2019 05:34:57 Top