Andrew Lockwood
Posts: 50
Joined: 2014-12-29
|
This may be a very naive question, but since AddIn Express is built around the Office 2000 Object Model, how do I use the Office 2007 Object Model instead?
For example,
uses
Outlook2007;
procedure
var
IExpl : _Explorer;
begin
IExpl := OutlookApp.ActiveExplorer();
end;
throws an error because IExpl is an Outlook2007 Explorer, but OutlookApp.ActiveExplorer returns an Outlook2000 Explorer.
Is it possible to use the Office 2007 Object Model, or am I stuck with using the Office 2000 model?
Thanks,
Andrew |
|
Andrei Smolin
Add-in Express team
Posts: 14591
Joined: 2006-05-11
|
Hello Andrew,
You need to import type library for Outlook 2007 and use it; an example of importing and using the type library for Outlook 2010 is given at http://www.add-in-express.com/forum/read.php?FID=1&TID=12731&MID=64876#message64876.
The code line above will bounce unless you cast the right-side expression to Outlook2007._Explorer.
Hope this helps.
Regards from Belarus (GMT+3),
Andrei Smolin
Add-in Express Team Leader |
|