Hide CommandBars from addins tab - Outlook 2010

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

Hide CommandBars from addins tab - Outlook 2010
 
Ishanka Karunasena




Posts: 15
Joined: 2011-07-28
Hi Guys,

I am trying to hide the Outlook Command Bar when running in OL2010.
The command bar is required in the application for OL2003/7 . But it shows in the add-in tab on the ribbon.

I found a previous topic where Andrei said:
I've reproduced this issue and wrote it down (case #953). It will be fixed in ADX.VCL 2010 Beta 2. (Posted 07 Apr, 2010 05:36:07)

Can you let me know if it is fixed and how I hide this now please.
Posted 02 Sep, 2011 06:01:39 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Ishanka,

You can use the UseForRibbon property to show or hide your command bar in a host application with the Ribbon UI. Please see the sample code below:


procedure TAddInModule.adxCOMAddInModuleAddInInitialize(Sender: TObject);
begin
  // Outlook 2010 ?
  if (Self.HostType = ohaOutlook) and (Self.HostMajorVersion >= 14) then begin
    OutlookExplorerCommandBar.UseForRibbon := False;
  end;
end;
Posted 02 Sep, 2011 06:39:24 Top
Ishanka Karunasena




Posts: 15
Joined: 2011-07-28
Hi Dmitry,

Thanks for your code.
it worked for my Add-in. :D
Posted 02 Sep, 2011 08:24:30 Top