I am not able to view Add-In ribbon in Outlook (2013) - c#

I have created Outlook Add-In using Visual Studio 2013. Added simple ribbon control to add menu. But when I run the application, I am not able to view the add-in although it is activated.

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.
To show VSTO Add-in user interface errors
Start the application.
Click the File tab.
Click Options.
In the categories pane, click Advanced.
In the details pane, select Show VSTO Add-in user interface errors, and then click OK. For Outlook, the Show VSTO Add-in user interface errors checkbox is located in the Developer section of the details pane. For other applications, the checkbox is located in the General section of the details pane.
Read more about that in the How to: Show Add-in User Interface Errors article.
Also Microsoft Office applications can disable VSTO Add-ins that behave unexpectedly. If an application does not load your VSTO Add-in when you try to debug it, the application might have hard disabled or soft disabled your VSTO Add-in. See How to: Re-enable a VSTO Add-in That Has Been Disabled for more information.
Do you try to customize the Fluent UI using the Ribbon designer or just by using a Ribbon XML markup?
Walkthrough: Creating a Custom Tab by Using the Ribbon Designer
Walkthrough: Creating a Custom Tab by Using Ribbon XML

Related

VSTO Ribbon: How can I make the text "Custom Toolbars" disappear from the left of the Ribbon?

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.

Outlook Addin disabled if Outllook is not ran as Administrator

Can someone please explain to me why an Outlook Add-in(Ribbon button - visual designer) would be disabled if I do not run Outlook as an Administrator?
When running as Administrator the Add-in is visible, enabled and working fine, but when I run it without Admin on, it's visible but disabled. Thanks
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.
Microsoft Office applications can disable VSTO Add-ins that behave unexpectedly. If an application does not load your VSTO Add-in, the application might have hard disabled or soft disabled your VSTO Add-in.
Hard disabling can occur when an VSTO Add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your VSTO Add-in is executing.
Soft disabling can occur when a VSTO Add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable a VSTO Add-in if it throws an unhandled exception while the Startup event handler is executing.
When you re-enable a soft-disabled VSTO Add-in, the application immediately attempts to load the VSTO Add-in. If the problem that initially caused the application to soft disable the VSTO Add-in has not been fixed, the application will soft disable the VSTO Add-in again. Read more about that in the How to: Re-enable a VSTO Add-in That Has Been Disabled article.
Also you may find the Troubleshooting COM Add-In load failures article helpful.

Add ins Name is not displayed in Word 2016

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..

Deploying Outlook Plugin C#

I developed an outlook plugin using C# and Visual studio Outlook addin template, that retrieves data from databases and generates a report off of the data.
Plugin works perfectly fine on my local machine. But when I distribute the plugin as an executable to the users, it does not work on the user's machine.
Meaning the addin is not checked by default and even if I check it manually, it does not show up on outlook in the addin bar.
I am unable to figure out if its due to the certificates or anything else.Do I need to install any certificates on the users machine ?
Could some one please help me out ?
EDIT
I right click on the solution file in solution explorer and publish to a folder to generate the setup.exe . My other team mate uses the same steps with the same project checked out of perforce and publishes a setup.exe. Now, his plugin works as expected on the user's machine and mine doesnot work (mine works only on my machine). So, I am not able to figure out what the difference is. Because we both are using the same framework (4.0) and VS (VS 2010 premium).It has something to do with the my machine. not sure if I am missing any installation
Did you have a chance to check out the Trust Center settings on the problematic PC? Are the VBA macro settings applied to COM add-ins? Is the Office application configured to load only signed add-ins?
Microsoft Office applications can disable add-ins that behave unexpectedly. If an application does not load your add-in, the application might have hard disabled or soft disabled your add-in.
Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the Startup event handler in your add-in is executing.
Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable an add-in if it throws an unhandled exception while the Startup event handler is executing.
When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. If the problem that initially caused the application to soft disable the add-in has not been fixed, the application will soft disable the add-in again.
Read more about that in the How to: Re-enable an Add-in That Has Been Disabled article.
Also you may find the Troubleshooting COM Add-In load failures article helpful.
Hope the following steps will help you solve this problem. I assume you are using Outlook 2013 or 2010.
Run the deployed setup with administration rights.
If it is not shown under Add-ins, again open the setup folder and double click on the correct .vsto file then select install.
If you can see your add-in among others, and is not functioning, it means your add-in is disabled. To enable it go to File -> Slow and Disabled Add-ins, and you should see your add-in on the pop-upped window. Enable it.
Edit:
If your plug-in is shown in Disabled Add-ins try applying the following steps:
Enable your plug-in by File -> Slow and Disabled Add-ins, and you should see your add-in on the pop-upped window. Enable it.
Right click on your add-in bar and select Customize the Ribbon.
Then on the pop-upped window, choose All Commands from the left hand side combo box. You should be able to find your command in the list box.
When you find your command click on the Add button between the lists. This will add your command to the chosen category on the right hand-side list. Then click OK.
Your command should appear under the chosen tab.
How are you deploying the add-in? You need to be sure you have configured the installations settings so when you execute the installer MS Outlook knows were to find it and all of its installations components.
In my example I am using MS Project, Visual Studio 2012 with Install Shield.
Below is an example of the registry settings I use for my add-in. You will notice I have configured the manifest to point to installation directory and points to vstolocal.
You will also need to add your .vsto file to your build when constructing the installer.

Excel Add In's Custom Ribbon Tab Will Not Display

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.

Categories

Resources