<ribbon>
<tabs>
<tab id='CustomTab' label='FrontExcel' tag='TOTO'>
<group id='eFrontCubes' label=' Server '>
<button id='ButtonConnect' tag='TATA' label='Connect' size='large' getImage='GetImage' getEnabled="RibbonButtonState" onAction='SettingsClick' screentip='Connect to a server'/>
</group >
Miserable C# Code
var commandBar = Excel.CommandBars["Ribbon"];
var cbb2 = commandBar.FindControl(MsoControlType.msoControlCustom, Type.Missing, "FrontExcel", Type.Missing, true);
cbb2 = commandBar.FindControl(MsoControlType.msoControlCustom, Type.Missing, "TOTO", Type.Missing, true);
cbb2 = commandBar.FindControl(MsoControlType.msoControlCustom, Type.Missing, "CustomTag", Type.Missing, true);
cbb2 = commandBar.FindControl(Type.Missing, Type.Missing, "FrontExcel", Type.Missing, true);
cbb2 = commandBar.FindControl(Type.Missing, Type.Missing, "TOTO", Type.Missing, true);
cbb2 = commandBar.FindControl(Type.Missing, Type.Missing, "CustomTag", Type.Missing, true);
cbb2 = commandBar.FindControl(MsoControlType.msoControlButton, Type.Missing, "ButtonConnect", Type.Missing, true);
cbb2 = commandBar.FindControl(MsoControlType.msoControlButton, Type.Missing, "TATA", Type.Missing, true);
cbb2 = commandBar.FindControl(MsoControlType.msoControlButton, "ButtonConnect",Type.Missing, Type.Missing, true ); //COM exception, why???
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at http://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/groups/opt_out.