I am developing a VSTO addin in Visual Studio 2013 for Outlook 2013. I add my own group to a few of the ribbons, such as the Home tab in Explorer view.
I would like to prevent anyone from renaming my group. Users can use the Customize Ribbon feature in Outlook to manage groups and commands and I can easily rename, move, or remove the group by customizing it.
Is there a way I can attach to an event and prevent the user from renaming my group (I would prefer to be able to prevent them from removing/hiding my group too).
I have looked through the Outlook 2013 Object Model list and I cannot find any relevant events to attach to. I don't see any Group objects or anything that looks relevant.
Is there a way I can attach to an event and prevent the user from renaming my group
The Fluent UI (aka Ribbon UI) nor the Outlook object model doesn't provide anything for that.
You may consider hiding the button in Outlook (on the backstage UI) for showing the options dialog instead.
Related
I am trying to develop a outlook addin using yoman-generator.
The code runs and opens outlook but the taskpane addin doesnot appear anywhere on the ribbon.
Also checked the disabled and inactive addins but the taskpane is nowhere to be found.
Anyone can help me on this please? And I am using outlook 2016
First of all, you need to check the manifest file for any ribbon UI customizations. If ribbon buttons are not listed there, you will never find them on the UI.
Also checked the disabled and inactive addins but the taskpane is nowhere to be found.
It seems you have checked the list of COM add-ins, not web add-ins in Outlook. On the Home tab you may find the Get Add-ins button which opens the Add-ins dialog where if clicking on the My Add-ins tab on the left side of the window you may find your add-in listed. If it is not listed there you need to add it by pointing to the manifest file. Before doing that you need to make sure the web server where the add-in is hosted is running and files are accessible.
Is there any way to add a button in home menu of outlook app?
If I click a button, I want a particular website to appear as a pop-up window.
Any comments would be appreciated!
VBA doesn't allow customizing the Fluent UI in Outlook. To customize the ribbon UI in Outlook you need to develop an add-in.
A rich customization is available for COM based add-ins, see Walkthrough: Create your first VSTO Add-in for Outlook to get started quickly. You may find the Walkthrough: Create a custom tab by using the Ribbon Designer helpful.
Another possible route is web-based add-ins. See Add-in commands for Outlook for more information. There is no so much flexibility like with COM add-ins, but the solution allows to support multiple platforms - Web, Mac OS, Windows.
I try to develop a Outlook Add-Ins (pure js/html app), not an VSTO / COM app with c#.
I found a way to add a button to the ribbonbar, but it seems to be only for Outlook 2016: https://msdn.microsoft.com/en-us/library/office/mt267546.aspx
But, is there a way to add a button in the ribbonbar for Outlook 2013?
Can't find anything even on dev.outlook.com...
You need to develop a COM add-in then (VSTO). See Walkthrough: Creating Your First VSTO Add-In for Outlook for more information.
There are two main ways for creating a custom UI in VSTO add-ins:
Walkthrough: Creating a Custom Tab by Using Ribbon XML
Walkthrough: Creating a Custom Tab by Using the Ribbon Designer
Moreover, your ribbon commands can be displayed for Exchange profiles only (where Office Apps can be run). But COM add-ins are run for all kind of profiles in Outlook.
I've tried to port over some code that worked in Visual Studio 2013 and adapt it for a new project in Visual Studio 2015 Community Edition with the Office developer addin.
I'm not quite sure what I've done differently, but this time round Outlook 2013 isn't displaying the ribbon tab that I created. It's not disabled, and it's not available in the "Customize Ribbon" dialogue either.
Sorry to be so vague, but I'm at a loss as to what to check and where to start to resolve this. I've attached a quick screengrab showing the tab I was hoping for and the debugger attached to the right outlook instance.
.
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. See How to: Show Add-in User Interface Errors for more information.
Also you may find the Walkthrough: Creating a Custom Tab by Using the Ribbon Designer helpful.
Is it possible to add a custom button in Sharepoint 2010 Ribbon just for a specific page?
I found many examples about adding a custom button in Sharepoint 2010 Ribbon via CustomActions (XML) in Visual Studio 2010, but nothing about adding it in a specific page.
As far as I know this not possible via custom actions.
However, you could write a delegate control that creates your ribbon button through code.
SharePoint 2010 Fluent Ribbon API helps you creating ribbon elements programmatically.
To see how you can do what Stefan suggests, you can take a look at Part 2 of my blog post series here. In the same way, you can check the current page in your server side code so that you can show/hide a ribbon button.