I am developing an Outlook AddIn (C#/VSTO) for our Company and some users started to complain about the autocomplete feature.
In my case it is a combobox where you can type in the name you want to search for.
The TextChanged Event will now add only the revelant items to give a clear result view in the dropdown selection.
But now if I want to search for Test Company and then want to search in the next step only for Test, Outlook starts to complete the input automatically to Test Company.
I know that pressing backspace will remove the suggestion, but it would be great if this could be completely disabled.
I googled it, but it seems that nearly nobody has required that before.
Here you can see the problem.
Is it possible to disable the auto complete feature?
Unfortunately the RibbonComboBox method does not allow you to override the auto-complete feature. All that you can do with it is detailed here: https://msdn.microsoft.com/en-us/library/microsoft.office.tools.ribbon.ribboncombobox.aspx
The Fluent UI doesn't provide anything for configuring that feature. Feel free to leave your feedback here.
You can read more about the Fluent UI (aka Ribbon UI) in the following series of articles in MSDN:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
Related
I want to add multiline item to ribbon menu (Microsoft.Office.Tools.Ribbon.RibbonMenu) in my office add-in like following image. but I don't know what these items should be?
*RibbonButton doesn't support multiline Label.
*RibbonLabel doesn't support variable font styles (like Bold and Normal).
UPDATE: if these features are not supported, is there another component (say DevComponents, Telerik, ...) that supports them?
Unfortunately not all ribbon features are available for developers. There is no way for add-in developers to implement something like that unfortunately.
You can read more about available ribbon controls and their attributes in the following series of articles in MSDN:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
I'm totally newbie in Office Add in Development.
Started few hours ago :)
Office version: 2016
I would like to create an add-in, with a button that will allow me to synchronize my email with my custom program and "flag" it to avoid a new synchronization in the future.
For that, it would be necessary to:
add a button (it seems simple to me, but by following this link, I did not manage to see the button when debugging in Outlook)
I would like the button is present in the ribbon that appears when you open an email, and only down (it would prevent a synchronization of several emails at once) - and I can not find the name of the adequate control. There is a list of Excel files (here) but which corresponds to the one of the opening of the mail message?
perform any action when the user clicks the button - I guess that's a simple event of the button, but how can I get the opened message data and metadata (sender, to, cc, subject ...)
"flag" the email, so as to avoid a second synchronization. The ideal is to add an icon to the email in the list of emails, as is done for an email containing attachments etc ...
I know I'm asking a lot, but I'm not asking to get the job done, just to be able to steer in the right direction. So if you have tutorials, articles etc ... to help me, it would be great.
Thank you
N.B.: Copy of this question has been posted in VSTO forum here
To create a custom ribbon UI, VSTO provides two possible ways:
Walkthrough: Create a custom tab by using the Ribbon Designer
Walkthrough: Create a custom tab by using Ribbon XML
To keep a separate state for the control for each inspector window separately you need to implement ribbon callbacks and call the Invalidate or InvalidateControl methods of the IRibbonUI interface. Read more about these methods in the following articles:
OfficeTalk: Display and Hide Tabs, Groups, and Controls on the Microsoft Office Ribbon User Interface (Part 1 of 2)
OfficeTalk: Display and Hide Tabs, Groups, and Controls on the Microsoft Office Ribbon User Interface (Part 2 of 2)
The Fluent UI (aka Ribbon UI) is described in depth:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
I try to create a listbox with custom XML entries/values which appears after the user enters a text in a editBox.
The developer environment is C# Outlook 13/16 VSTO Plugin.
My problem is, I can only access with Ribbon Controls to an editBox or a comboBox.
With the comboBox I am able to add my custom XML entries like:
foreach (XmlNode node in source.DocumentElement.SelectNodes("/path/item/value"))
{
RibbonDropDownItem item = Globals.Factory.GetRibbonFactory().CreateRibbonDropDownItem();
string text = node.InnerText;
item.Label = text;
this.comboBoxCompose.Items.Add(item);
//System.Diagnostics.Debug.WriteLine(text);
}
The editBox e.g. does NOT provide to add items...
The comboBox is the wrong choice for me, because it is a dropdown selection.
Is there a way to implemnet a listBox with custom results like in the picture enclosed. Do I have to combine it with an other API/library?
Would be nice if someone could help here.
No, there is no way. The Fluent UI provides a definitive set of controls.
You can read more about the Fluent UI (aka Ribbon UI) in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
As a workaround you may consider creating a custom UI on the Outlook form region instead of Ribbon where you are free to use any .Net controls. See Creating Outlook Form Regions for more information.
I wrote a Web App that collects key information regarding one customer from the ERP underlying database.
What I would like to achieve is that any email that is opened in Outlook gets a button with a hyperlink to that url and the email's sender address as the query string parameter.
How could this be done?
You can develop an Outlook add-in. See Walkthrough: Creating Your First VSTO Add-In for Outlook to get started quickly.
You can add custom controls on the ribbon and add context menu items for contacts allowing users to make a call. VSTO provides two main ways for customizing the UI:
Walkthrough: Creating a Custom Tab by Using the Ribbon Designer
Walkthrough: Creating a Custom Tab by Using Ribbon XML
You may find the Extending the User Interface in Outlook 2010 article helpful.
The Fluent UI (aka Ribbon UI) is described in depth in the following series of articles:
Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
If you need to support other platforms, not only the desktop edition of Outlook, you may consider developing a Mail App. See Overview of mail add-ins for Outlook. According to the latest news you will be able to add commands to the ribbon.
I'm trying to dynamically customize the built-in Ribbon Controls on an Office2007 ribbon by adding C# objects such as RibbonTab, RibbonGroup, RibbonControl to the Ribbon. I have been unsuccessfull in disabeling any existing built-in controls, however I can add my own group. Now i'm thinking that disabling or hiding existing ones not be possible.
If anyone been able to hide a built-in control using code or the designer using .NET VSTO Office 2007 development, can you please post the code you used?
Thanks!
Here is a Stackoverflow question that talks about overriding built-in ribbon commands. Here is an MSDN video that shows it as well.