Chaning the id does not display the ribbon

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

Chaning the id does not display the ribbon
 
Sujay Ghosh




Posts: 27
Joined: 2010-01-20
Hello

When I add an ADXRibbon , an unique id is generated .

I dont know if I should change it, but it was ediable ; so I changed it something meaningful ; adxMainRibbon.

After changing the id, the ribbon did not show up in Word .

Please let me know.

Thanks
Sujay
Posted 15 Nov, 2020 14:29:31 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Sujay,

Make sure the checkbox below is selected. Do you reproduce the issue if you create a new empty add-in project, add a Ribbon tab and rename its id?

By default, if an add-in attempts to customize the Ribbon user interface (UI) of Office 2007-2019/365 and fails, no error message is displayed. However, you can configure Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom Ribbon does not appear, or why a Ribbon appears but no controls show up.
Outlook 2007:
?Â?Ð?? Go to the Outlook menu -> Tools -> Options -> go to the Other tab and click Advanced Options.
?Â?Ð?? In the Advanced Options dialog box, select Show add-in user interface errors and then click OK.
Office 2007 (except for Outlook, see above):
?Â?Ð?? Click the Microsoft Office Button
?Â?Ð?? Go to {application name} Options -> Advanced
?Â?Ð?? In the General section of the details pane, select Show add-in user interface errors and then click OK.
Outlook 2010-2019/365:
?Â?Ð?? Click File -> Options - >Advanced
?Â?Ð?? In the Developer section of the details pane, select Show add-in user interface errors and then click OK.
Office 2010-2019/365 (except for Outlook, see above):
?Â?Ð?? Click File -> Options - >Advanced
?Â?Ð?? In the General section of the details pane, select Show add-in user interface errors and then click OK.


Andrei Smolin
Add-in Express Team Leader
Posted 16 Nov, 2020 02:57:21 Top
Sujay Ghosh




Posts: 27
Joined: 2010-01-20
Hello Andrei ,

Its very easy to reproduce .

Create a ADX COM Addin for Word,and add a ribbon.

Execute the project, and the new ribbon should be displayed in Word.

Come back to the solution, and clean the project. Change the ribbon id from the generated one to "adxMainRibbon" .

Execute the project, and the new ribbon wont be displayed in Word.

Thanks
Sujay
Posted 19 Nov, 2020 23:43:37 Top
Andrei Smolin


Add-in Express team


Posts: 18821
Joined: 2006-05-11
Hello Sujay,

Here are the exact steps I followed:

- create a new add-in project
- put a Ribbon tab component onto the add-in module designer
- add a group to the tab, add a button to the group
- register the project
- start Word and make sure the tab, group and button are visible
- close Word
- change the tab's Id property
- build the project
- start Word

This works for me: the Ribbon controls are visible.

Make sure you selected the check box I described in my previous message. Also check the InitializeComponent method which is called from the constructor of the add-in module. The method contains the exact value you enter to the Id property. In my case, I have:

// 
// adxRibbonTab1
// 
this.adxRibbonTab1.Caption = "MyAddin80";
this.adxRibbonTab1.Controls.Add(this.adxRibbonGroup1);
this.adxRibbonTab1.Id = "adxMainRibbon";
this.adxRibbonTab1.Ribbons = AddinExpress.MSO.ADXRibbons.msrWordDocument;



Andrei Smolin
Add-in Express Team Leader
Posted 20 Nov, 2020 02:35:27 Top