Add ins Name is not displayed in Word 2016 - c#

This is a very strange issue that I am not able to see the custom Add-in name in the ribbon of word 2016. it displays just a link without any name and displays all the links under the ribbon on click to the add-in.
The Primary solution I founded is to disable the custom add-in from File-> Options-> Add-Ins-> Manage(Com Add-ins) and enable it again then it works fine.
Add-in is enabled here in by default stage.
I can see all the options of my add-in on click to the highlighted red color block which does not display add in name.
I have developed the add-in in VS 2010 using VSTO.
Is there any setting in word that I have to change for the same or am I Missing something?
Please help..

Related

Excel VSTO Can't Add Button to Worksheet

I created a VB.NET Excel VSTO project Using VS 2019. I tried to add the controls like button, checkbox, textbox etc to the sheet directly like VBA ActiveX control (Not in the ribbon, ribbon works fine). But VS cant let me do that. It's Not showing any error, just not doing anything. Is it a bug, or I can't do that in VSTO? I have searched everywhere but can't find anything useful.

VSTO Ribbon: How can I make the text "Custom Toolbars" disappear from the left of the Ribbon?

I'm using VSTO with Visual Studio 2015 and testing the add-in in Excel 2010. On the left side of my ribbon, there's a text showing "Custom Toolbars". How can I get rid of this text?
Solution: Thanks to #Cindy Meister insights, I went to the properties of the "OfficeRibbon" and clicked on "Tabs" properties. On "ControlIdType" (under "ControlId" option) I chose "Custom" instead of "Office" (which was the previous chosen option) and then the "Custom Toolbars" message disappeared.
This indicates that there is some other customization present besides your VSTO add-in. This customization probably comes from a pre-Ribbon version of Excel, where there were menus and toolbars. People and develpers could - and did - customize these quite frequently. When Office moved to the Ribbon UI in version 2007, these customizations were all dumped into the Add-ins tab on the Ribbon, which is shared.
As a developer you cannot control what appears in the Add-ins tab - it's designed to be shared.
If you don't want to share a tab then you should define your own, custom tab in the VSTO add-in. Probably, you're using the Ribbon Designer? In that case, right-click in the Designer in the Ribbon tab area. From the context menu, choose Add Ribbon Tab.
Any Ribbon tabs you create in this manner will be specific to your VSTO add-in. No one else will be able to add things to it, or execute your controls.

Excel Addin RibbonBar shows old Buttons

I have an Excel addin which has a ribbonbar.
The ribbonbar has some buttons and checkboxes, etc.
Recently, I removed a checkbox and added a button instead.
The ribbonbar shows correctly in the designer but isn't showing the button in Excel.
It seems that the ribbonbar is not being updated.
In Designer:
InExcel:
I guess Visual Studio places the DLLs, etc. in a temp folder while debugging but I am not sure where this might be.
My question is: Why is the button not showing? Are there temporary files which may lead to this error?
When debugging, I can see that the visible property is set to true and that it is correctly added to the group.
Some info:
I am using Excel 2007 with Visual Studio 2010.
When you start debug session from visual studio the addin is installed. It is possible that visual studio did not reinstall the addin correctly. Can you try to remove the addin from excel explicitly following this steps:
Start Excel as you normally do (not from visual studio), Go to File -> Options -> Add-ins
From the Manage drop down pick COM Add-ins then click Go
Find your add-in mark it and click Remove
Now if you start new debug session probably the toolbar will be updated.
If this resolve the issue, the cause is as you've said it - related to some cached dll.

I am not able to view Add-In ribbon in Outlook (2013)

I have created Outlook Add-In using Visual Studio 2013. Added simple ribbon control to add menu. But when I run the application, I am not able to view the add-in although it is activated.
Do you get any UI errors?
By default, if an VSTO Add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft 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 appear.
To show VSTO Add-in user interface errors
Start the application.
Click the File tab.
Click Options.
In the categories pane, click Advanced.
In the details pane, select Show VSTO Add-in user interface errors, and then click OK. For Outlook, the Show VSTO Add-in user interface errors checkbox is located in the Developer section of the details pane. For other applications, the checkbox is located in the General section of the details pane.
Read more about that in the How to: Show Add-in User Interface Errors article.
Also Microsoft Office applications can disable VSTO Add-ins that behave unexpectedly. If an application does not load your VSTO Add-in when you try to debug it, the application might have hard disabled or soft disabled your VSTO Add-in. See How to: Re-enable a VSTO Add-in That Has Been Disabled for more information.
Do you try to customize the Fluent UI using the Ribbon designer or just by using a Ribbon XML markup?
Walkthrough: Creating a Custom Tab by Using the Ribbon Designer
Walkthrough: Creating a Custom Tab by Using Ribbon XML

Excel Add In's Custom Ribbon Tab Will Not Display

I've created an application level add-in for Excel to automate some tasks. I used the VS2012 template Visual C# > Office > 2010 > Excel 2010 Add-In.
Rather than having an action pane open every time Excel does, I've opted to create a custom ribbon tab following these instructions:
http://msdn.microsoft.com/en-us/library/vstudio/bb386104.aspx
However, when I build my project, the tab does not display. I have verified the add-in is loading, and all of its features function properly, except the Ribbon. I created a simple form to test this, which loads as expected.
I then tried creating an Excel 2010 Workbook project. After adding the Ribbon (using the same steps as before) and building the project, it simply works; the ribbon tab appears as expected.
I've tried overriding ThisAddIn.CreateRibbonExtensibilityObject() to return my ribbon object, created via Globals.Factory.GetRibbonFactory().CreateRibbonManager. Again, no dice.
I'm at a loss now.
I also had this problem, where my VSTO ribbon wasn't being displayed.
Here's my solution, using Excel 2013 and VS2015.
What you need to do is:
Open the Ribbon Designer window
Select the RibbonTab object
In the "Properties" window, expand "ControlId" branch, and change the ControlIdType from "Office" to "Custom"
Ridiculous, hey ?
But, strangely, it works...
After much pain, I found that the Position property of the RibbonGroup must be Default.
I had this happen with using the xml ribbon developer tool. You have to add this code (or similar functionality into ThisAddIn.cs (or primary add in class)
protected override Microsoft.Office.Core.IRibbonExtensibility CreateRibbonExtensibilityObject()
{
return new Ribbon1();
}
Default tab's visible property value is False, set it to True.
I switched back to Visual Studio 2017 Community edition and it worked for me.
As an up-gradation process, I'd migrated my VSTO Add-Ins from VS 2017 to VS 2019.
When I compiled my Add-Ins on VS 2019 Community Add-Ins worked well for MS Word and Outlook, but MS Excel was not showing the Add-In (Ribbon)
Tried many suggestions but did not work. After switching back to VS 2017 Community it started working well.

Categories

Resources