how to upgrade my old version of addin to Outlook 2010

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

how to upgrade my old version of addin to Outlook 2010
 
tom rozek




Posts: 14
Joined: 2011-03-03
hey,

I have a problem with my old addin. It works perfectly in old versions of office but now i want it to run in outlook 2010.

The problem is that DropDownLists from adxcommandbar don't work. So I created a new ribbon and put all i need on it. But still after registering the project the ribbon is not displayed and the commandbar is there not working.

what should i do about it?

thx in advance,
Tom
Posted 03 Mar, 2011 08:29:47 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Tom,

Please note that Outlook 2010 uses Ribbon UI for the explorer and inspector windows. In that case you need to use the AddinExpress.MSO.ADXRibbonTab component instead of command bars. Please check out the Ribbons property of the AddinExpress.MSO.ADXRibbonTab component. What value does it have?
.NET, Extended MAPI, Windows Phone & RT
Posted 03 Mar, 2011 10:00:45 Top
tom rozek




Posts: 14
Joined: 2011-03-03
Hi, Eugene and thx for quick reply

delclaration:

Friend WithEvents AdxRibbonTab1 As AddinExpress.MSO.ADXRibbonTab


and usage:



Me.AdxRibbonTab1.Caption = "plugin"
        Me.AdxRibbonTab1.Controls.Add(Me.AdxRibbonGroup1)
        Me.AdxRibbonTab1.Id = "adxRibbonTab_87d85b35d9584532b70ba5d708de14b0"
        Me.AdxRibbonTab1.Ribbons = CType((AddinExpress.MSO.ADXRibbons.msrOutlookMailRead Or AddinExpress.MSO.ADXRibbons.msrOutlookMailCompose), AddinExpress.MSO.ADXRibbons)
        


so i just added the explorer thing and it started working ;)
i also changed the commandbar property "useforribbon" to false

thx
Posted 04 Mar, 2011 01:36:12 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Hi Tom,

Good news! Thank you for letting me know.

FYI However please note that the AddinExpress.MSO.ADXCommandBar component is not designed for using in Outlook. Instead please use the AddinExpress.MSO.ADXOlInspectorCommandBar and AddinExpress.MSO.ADXOlExplorerCommandBar components.
.NET, Extended MAPI, Windows Phone & RT
Posted 04 Mar, 2011 08:10:40 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
Tom,

Also please be aware that Outlook 2007 is a partially ribbonized application: the explorer window still uses command bars. In that case, if you set the UseForRibbon property to false, your command bar will not be shown between Outlook 2007 explorer command bars. Please use the AddinInitialize event handler to enable your command bar:

private void AdinModule_AddinInitialize(object sender, EventArgs e)
{
   if(HostMajorVersion == 12)
   {
      adxCommandBar1.UseForRibbon = true;
   }
}
.NET, Extended MAPI, Windows Phone & RT
Posted 04 Mar, 2011 08:40:46 Top
tom rozek




Posts: 14
Joined: 2011-03-03
Eugene,

OK, will do

thanks a lot
Posted 07 Mar, 2011 05:35:22 Top
Eugene Astafiev


Add-in Express team


Posts: 8540
Joined: 2007-07-25
You are welcome, Tom!
.NET, Extended MAPI, Windows Phone & RT
Posted 07 Mar, 2011 05:46:55 Top