Using Outlook2010 instead of Outlook2000

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

Using Outlook2010 instead of Outlook2000
Can't use Outlook2010-types 
Wolfgang Denz




Posts: 10
Joined: 2011-08-05
Hello,

I've succesfully build a plugin that integrates in our Office-products.
As we're using Office2007 I have changed recently the Office2000-units with the Office2010 Units and now I'm able to Access the new methods of Winword2007 for example.
This worked for Winword2010, Excel2010 and Office2010, but I can't Change Outlook2000 to Outlook2010 to get the new methods offered by the newer Outtlook-versions after Outlook 2000.

The Outlookapp-object in my plugin relies on a Outlook2000.TOulokkapplication and I can't Change this to Outlook2010;

How can I achieve this?

Best regards from germany
Wolfgang
Posted 06 Oct, 2014 02:34:16 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
Hello Wolfgang,

You need to import Outlook 2010 type library. Below, Outlook_Tlb is the name of the corresponding unit.

procedure TAddInModule.adxCOMAddInModuleAddInInitialize(Sender: TObject);
var
  ol2010: Outlook_Tlb._Application;
  i: integer;
begin
  ol2010:= self.OutlookApp.Application as Outlook_Tlb._Application;
  for i := 1 to ol2010.Session.Accounts.Count do begin
    ShowMessage(Format('%s  : This is account number %d', [ol2007.Session.Accounts.Item(I).DisplayName, i]));
  end;
end;


Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Oct, 2014 07:16:51 Top
Wolfgang Denz




Posts: 10
Joined: 2011-08-05
Hello Andrei,

that works.

Thanks
Wolfgang
Posted 06 Oct, 2014 08:42:58 Top
Andrei Smolin


Add-in Express team


Posts: 14106
Joined: 2006-05-11
You are welcome!

Regards from Belarus (GMT+3),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Oct, 2014 09:33:39 Top