I have two excel-addin project is wroted by C# with excel-dna package and the first add-in have a customui like follow:
<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon>
<tabs>
<tab id='tab1' label='MyAddIn'>
<!--Other group-->
</tab>
</tabs>
</ribbon>
<backstage>
<tab id='myTab' label='myTab' title='myTabTitle' insertBeforeMso='TabInfo'>
</tab>
</backstage>
</customUI>
And the second add-in are more like an extension add-in from the first add-in, it have a customui like follow:
<customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui">
<ribbon startFromScratch="false">
<tabs>
<tab id="tab1">
<group id="Report_x" label="Report1">
<button id="reports_btn" size="large" label="Reports" onAction="on_api_rpts_btn_click" tag="Report" imageMso="AdpDiagramTableModesMenu"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Both of two addin loads the customui by using excel-dna package like follow:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using ExcelDna.Integration.CustomUI;
namespace SomeNameSpace
{
public class MyRibbonClass: ExcelRibbon
{
public override string GetCustomUI(string RibbonID)
{
string customUiStr = string.empty;
// read resources
return customUiStr;
}
}
}
But i don't know why i only can see the MyAddIn
tab and all group which is definied in the first add-in on Excel ribbon, the second add-in's tab only show in "ExcelOptions" -> "CustomRibbon" -> "Empty Tag" group