I have written an Excel VSTO Addin with C# that is compatible with Excel 2013 as well as Excel 2016/365.
In Excel 2013, I see a tooltip window for every ribbon button, that contains my addin's name and a link to more information, which simply opens a help topic about addins.
I don't want either. If I add a "ScreenTip" or a "SuperTip" to my ribbon buttons, they will be added on top of this unwanted tooltip, but they don't replace it.
Excel 2016 does not show such tooltips.
How can I get rid of them? I only want my own ScreenTips and SuperTips
Since I am using the VS Ribbon designer, I have no, and don't want to have, access to the underlying ribbon XML.
You can't get rid of them, that part is controlled by Microsoft. Assumedly it was part of Microsoft's goal of helping to inform users that a control is not a Standard Office control, so that when it breaks, they don't blame MS for it, but instead recognize the identifier listed there and then seek support from whoever made the Add-In.
Related
I'm currently writing a PowerPoint 2010 C# add-in using VSTO. I am trying to execute a number of Ribbon controls which are there through custom add-ins from within my own C# add-in.
For example, to find the following control and execute its click event, how would I do it?:
Insert tab -> "Addin X" group -> "Do it" button
I've looked into using the Accessibility interface but am totally unfamiliar and would be at it all day. If someone knows how to knock together the code, I would be immensely grateful.
I've got a minimal VSTO Addin for Outlook 2010 with a ribbon. My only goal is to display a ribbon (created via designer) with no functionality. From what little I can tell from MSDN ribbons should just automatically be displayed by default, perhaps with tweaking ControlIdType/CustomId properties for tabs.
Alas, tweaking these properties does nothing -- Outlook loads and displays no tab. A simple message box displayed in the ribbon loader reveals it never is triggered. Additionally, I haven't seen any information resources (tutorials, walkthroughs, overviews, etc..) that say anything about needing to manually tell Outlook to display tabs.
How do I get the tabs displayed?
Is there a good resource other than MSDN that's good for VSTO newbies?
To get your ribbon displayed, on the base ribbon in your code change the RibbonType property to be Microsoft.Outlook.Explorer.
What fixed it for me (without starting a new project), in the Ribbon1.vb ribbon design, I clicked on the the Ribbon1 name above the ribbons 'File' button, in the properties pane, clicked on tabs (collection), under the heading 'Design' I changed the name (from Tab1) to something else.
Clicked ok, tested by clicking F5 and it worked. Hope this helps someone else.
We are embedding a word control inside of a winforms app, and need to hide and disable the ribbon on Office 2007 and 2010.
Is it possible to hide/disable the office 2007/2010 ribbon programmatically using the office interop dlls? Is there another method available to do this?
I don't think you can disable the ribbon as such, but using a custom XML file you can hide the default tabs, groups and commands (or add your own). Setting the custom XML file can be done via interop (see IRibbonExtensibility and GetCustomUI). This may not be perfect, but perhaps better than nothing.
It is not possible to disable the Office 2007/2010 ribbon.
In the user interface, Ctrl F1 will accomplish the hiding.
If you were able to send keys to the embedded app, that'd accomplish that.
System.Windows.Forms.SendKeys.Send("^{F1}");
More on SendKeys at MSDN.
As part of my Outlook Addin I would like to add a control to the Ribbon which has the same format as the 'Home\Quick Steps' and 'View\Arrangement' controls. Does anyone know if these can be created by Addins?
These are variation of the in-ribbon gallery, you are currently not able to build ones yourself, you can only do drop down galleries. I believe that it has been request by alot of devs.
Marcus
Does anyone know how to modify the content of the Excel ribbon at runtime with VSTO 2005SE? Not only update labels or dynamic menus, but also add or remove buttons, tabs, groups, drop downs etc. At runtime means not only at my add-in startup, but also during work with Excel.
Irrespective of VS version, I don't think all that you want is actually possible with the current version of the RibbonX control*. Specifically, there's no functionality for adding and removing. You can control visibility, though, so you can put everything in by default and make it visible or otherwise as needed.
* which was 2007 at time of writing - Excel/Office 2010 may have changed things
I agree with Mike, working with the visibility callback on controls or groups is probably your best bet (that's what we are using).
The entire ribbon layout is loaded from an XML string. I don't know if it is possible to trigger a reload of the XML, which you could then customize to load different XML content.
If you use Visual Studio 2008, you have a great ribbon designer.
Do you want to have methods that is triggered by excel?