Outlook AddIn: CommandBarButton in the existing context menu - ms-office

I am trying to do a Outlook AddIn. I have a requirement to have a CommandBarButton
in the existing context menu.
Eg: I need to add a new button "New button" in the "Home" context menu.
Is there any way to implement this?

Command Bars were deprecated. They are not used any longer. You need to use the Ribbon XML for customizing context menus in Office applications. You can read more about that in the Customizing Context Menus in Office 2010 article in MSDN.

Related

How to set icon size in Outlook 2010 add in c#

I develope an outlook 2010 add-in,
I have Office.CommandBars cmdBars that holds Office.CommandBarButton,
I set the buttonTemp_Dial.Style = Office.MsoButtonStyle.msoButtonIconAndCaption
and buttonTemp_Dial.Picture have a reference to icon pic.
The icon in add in is small how can I change it to big Icon?
the add-in is in separate tab in Outlook, is there a way to put the add in to the "Home" tab?
If you use the old CommandBars based API, your button will appear on the Addins tab, which is probably not something that you want.
Your add-in (on the low level) needs to implement the IRibbonExtensibility interface and return your customization as XML - see http://msdn.microsoft.com/en-us/library/office/bb226712(v=office.12).aspx

Is it possible to hide Homepage Ribbon Button in CRM 2011

There's a possibility to hide Form's Ribbon button in crm by java script.
But i cant hide Home page Ribbon button.
Is there any ways to hide home page ribbon button using java script?
Thanks in advance
Because some comments are lost in a removed answer, I rewrite here.
Ribbon customization (also the one inside the homepage) must be done editing the XML definition, not by DOM manipulation of the element.
More information here:
Define Ribbon Display Rules
and here:
Define Ribbon Enable Rules
Is also suggested to use a ribbon editor, like this one:
Ribbon Workbench for Dynamics CRM 2011
Visual Ribbon Editor is also a very good tool.
You can download it from here:
Visual Ribbon Editor
To edit the ribbon manually, have look at this article.

Customizing Office (Word/Excel/PowerPoint) standard toolbar, ribbon, menu and context menu from my plugin

I've an Office plug-in implemented in C++.
Depends on the context and logic of my plug-in, I would like to enable/disable some existing UI elements of Office (menu, ribbon, context menu, and for old Office CommandBars).
Please help or point me out to resources how to do so (C# or VBA resources also appreciated).
A couple of things to get rid of the main offenders (Ribbon, Command Bar) in Excel VBA.
Show and hide Ribbon interface:
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",False)"
Application.ExecuteExcel4Macro "SHOW.TOOLBAR(""Ribbon"",True)"
Show and hide command bars in older versions of Excel.
1) Show hide ribbon items:
You cannot set the enabled state or toggle the visibility of built in ribbon controls, this functionailty is reserved for inner workings of MS Office - more
The reverse is true, in that you can set enabled state or toggle the visibility of your custom ribbon items.
And likewise the users will be prevented from changing this via the Customize Ribbon interface:
myTabName.Groups[0].Items[0].Enabled = false;
myTabName.Groups[0].Items[1].Visible = false;
2) In terms of command bars, Office context menus, you can perform any customizations such as changing enabled and visibility states and adding your own.
You can also change the command bar properties based on a condition - example
3) For a complete list customizations you can and can't do in the ribbon have a look at these two articales:
Office UI Customization - Comparison of UI Features and Can I customize the ribbon

Appropriateness of use regarding ribbons and menu's in sharepoint 2010

So with the new Ribbon on top of the SharePoint 2010 page we have an office like feel to working with SharePoint pages. Customization of this ribbon is great, adding your own functionality augmenting what Microsoft provides out of the box. My question is this though, when is it appropriate to use ribbon customization vs an item menu option (i.e. the callout menu on a particular item).
Are there best practices around this? What do you do?
They share a lot of the same options. The ribbon is focused on working with the entire list or library, but still has options pop up when you click on an item that are targeted at that one item. The call-out on a single item is always focused on options for just that item.
So I would say if your looking to do something with an entire list or library, put it in the ribbon. If it is going to be an option specifically tied to one item at a time, put it in the call-out menu, but also try to make it show up in the ribbon if someone doesn't look at the call-out menu.
But that's just my opinion and I haven't had any experience putting custom functionality into either sections.

How to disable button of Ribbon ToolBar?

[Possible Duplicate]
Disable Ribbon Button
But I came with question, as I'm this question not answered and I'm looking for available server side solution.
I wonder if there is a way to disable button or many buttons from Ribbon toolbar from server side?
Using Ribbon.TrimById Method (String) you can locate Ribbon, RibbonButton or RibbonGroup to hide.
Complete sample to hide Ribbon buttons sharepoint 2010 programmatically.
I think you will want to look into the HideCustomAction option of the Feature Framework. http://msdn.microsoft.com/en-us/library/ms414790.aspx
It has the ability to hide some aspects of the default UI elements in the product and the documentation does talk about the Ribbon so it may do what you want.

Resources