Hi Govert,
Thanks for the suggestions, i tried option 1 however it didn't work
for me. When i keep the ribbon xml in dna file it works properly but
when i try to return the same through overriden GetCustomUI() method
it doesn't work. Below is the dna file & the overriden GetCustomUI
function definition. The ribbon class resides in
Nomura.Fir.Excel.Addin.dll and is declared as ComVisible="true". So
please advise what might be going wrong here.
<DnaLibrary Name="FIR Excel Add-In" RuntimeVersion="v4.0">
<ExternalLibrary Path="Nomura.Fir.Excel.Addin.dll"
LoadFromBytes="true"/>
<Reference AssemblyPath="Nomura.Fir.ServiceModel.dll"
LoadFromBytes="true"/>
<Reference AssemblyPath="Nomura.Fir.Configuration.dll"
LoadFromBytes="true"/>
<Image Name="config" Path="configuration.png"/>
<Image Name="excelTools" Path="excel_tools.png"/>
<Image Name="email" Path="mail.png"/>
<Image Name="view" Path="view.png"/>
<Image Name="help" Path="help.png"/>
<CustomUI>
<customUI xmlns="
http://schemas.microsoft.com/office/2006/01/
customui" loadImage='LoadImage'>
<ribbon>
<tabs>
<tab id="FirExcelDNAAddIn" label="FIR Add-In">
<group id="FirExcelAddinGroup" label="FIR Add-In">
<button id="ConfigManager" onAction="OnConfigManagerClicked"
label="Manage Configuration"
size="large" image="config"/>
<button id="ExcelToolsExplorer"
onAction="OnExcelToolsExplorerClicked"
label="Excel Tools"
supertip="Download FIR Excel Tools"
size="large" image="excelTools"/>
<button id="EmailLog" onAction="OnEmailLogClicked"
label="E-mail Log"
size="large" image="email"/>
<button id="ViewLog" onAction="OnViewLogClicked"
label="View Log"
size="large" image="view"/>
<button id="ViewHelp" onAction="OnViewHelpClicked"
label="Help"
enabled="true"
size="large" image="help"/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>
</CustomUI>
</DnaLibrary>
public override string GetCustomUI(string uiName)
{
//return Nomura.Fir.Excel.Addin.Resources.RibbonXml;
return @"<customUI xmlns='
http://schemas.microsoft.com/
office/2006/01/customui' loadImage='LoadImage'>
<ribbon>
<tabs>
<tab id='FirExcelDNAAddIn'
label='FIR Add-In 2'>
<group
id='FirExcelAddinGroup' label='FIR Add-In'>
<button
id='ConfigManager' onAction='OnConfigManagerClicked'
label='Manage
Configuration'
size='large'
image='config'/>
<button
id='ExcelToolsExplorer' onAction='OnExcelToolsExplorerClicked'
label='Excel
Tools'
supertip=Download FIR Excel Tools'
size=large
image='excelTools'/>
<button id='EmailLog'
onAction='OnEmailLogClicked'
label='E-mail
Log'
size='large'
image='email'/>
<button id='ViewLog'
onAction='OnViewLogClicked'
label='View
Log'
size='large'
image='view'/>
<button id='ViewHelp'
onAction='OnViewHelpClicked'
label='Help'
enabled='true'
size='large'
image='help'/>
</group>
</tab>
</tabs>
</ribbon>
</customUI>";
> > Sandeep- Hide quoted text -
>
> - Show quoted text -