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.
Related
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.
I'm currently using VSTO. Normally, when I load a new project, the first thing that appears is a worksheet that Visual Studio created automatically. But now, this page is totally blue, like this
When I try to debug the project as it stands, the workbook will be loaded, but the worksheet will not, like this
The last thing I did before having this problem was install Excel DNA in another project that I'm working on.
I've already tried to search for solution online but I haven't found anything.
I'm using:
Windows 10 / Microsoft Office 365 ProPlus / Visual Studio 2017
This might be an Excel 2016 bug that is triggered when you have an .xll add-in installed - presumably the Excel-DNA add-in in your case, but any C/C++ .xll add-in would also cause this behaviour.
There was a discussion on the MSDN forums which seems to indicate the bug has been fixed in recent Excel 2016 updates.
change excel option:
option-->General-->User interface options
when using multiple displays:
optimize for compatibility
will solve this problem.
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.
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..
I made an application at the office which runs a bunch of ProcessManager objects which themselves run a bunch of Process objects.
I have been thinking in creating a wizard to create automaticly the classes needed, but I want now to create a custom designer for creating and editing the classes. By designer, I mean like the LinqToSql designer and so on.
I wasn't able to find any information about it, or at least clear one. I've been looking at how to create a new editor for vs 2010 or add design-time ability, but none of theses researches helped me.
The ideal would be to have let's say ProcessManagerClass1.cs and ProcessManagerClass1.designer.cs and when opening the first one, it would open the custom designer.
Do you know how to do it and give me some links for tutorials or documentation??
Thank you for your help,
Vincent
I would start with the Visualization and Modeling SDK for Visual Studio 2010, which was formerly known as the Domain Specific Languages SDK. It is the way to create custom designers in Visual Studio. To use it, you first have to install the Visual Studio 2010 SDK (SP1 here, but you may have to run them in order, which means this first, then the Visualization SDK, then SP1)