I have created a setup file for outlook add-in using installShield. After building the setup project, it has given setup file, that I installed in my machine. But when I open the outlook it is not showing in add-in tab. I tried to search the disabled add-ins also, it was not there.
Please suggest me.
By default, if a 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 you need to do the following steps:
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.
See How to: Show Add-in user interface errors for more information.
Also I'd recommend choosing your own custom tab for the UI. Thus, you will be able to avoid any clashes with other add-ins.
VSTO provides two main ways for creating a custom tab:
Walkthrough: Create a custom tab by using the Ribbon Designer
Walkthrough: Create a custom tab by using Ribbon XML
I missed the below step in InstallShield
I registered the Addin in Repository with the details of
Description, Friendly Name, LoadBehaviour, and Manifest.
Now The add-in is showing in outlook menu bar.
Related
I created a word add-in and now want to use it on another com.
I have installed and set in options/add-ins/. It shows that my add-in is active but from the menu-bar I can't find add-ins.
Please help me how can I do?
I developed with C# and publish into setup.exe and .vsto file. So install with them on other coms.
Check if your Custom Ribbon is activated:
File -> Options -> Customize Ribbon -> Main Tabs
Your Custom Ribbon option should be checked
By default, if a 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 you need:
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.
See How to: Show Add-in user interface errors for more information.
I developed Outlook AddIn and create the setup project for 64bits using Visual Studio 2013.
My office is 64bit as well. Currently my problem is that there are two ribbons menu instead of one.
After installating, I open my outlook and check. I can only see one ribbon menu.
but I load my outlook second time, there can be see two ribbons. so I mouse over to these two ribbons.
one is my setup project name and another one is my outlook addin name. but they do the same purpose
and all layouts and functions are same. I would like to know why did two ribbon come out instead of one.
Best Rgds,
dartfrog
Looks like you didn't unregister the add-in from Visual Studio before running the installer. Use the Clean context menu button as shown on the screenshot:
You can disable add-ins in the host application. Just go to the COM Add-ins dialog and unselect the required one.
My solution contains two projects, one is a Windows form and the second is a
Outlook 2007 Add-in project.
I have added one form, to the form project, and it contains one button. When clicking the button, I would like it to open the Outlook 2007 Add-in project.
And then I will perform operations on the Outlook 2007 Add-in project.
The add-in project can be just use in outlook.
You can open outlook to use this
Process.Start("outlook.exe");
I add a Word 2013 Add-In project for add ribbon to word.
I Release it. it added ribbon to word for current user, but i want add it to all user.
I set registry in windows.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\General\
Set EnableLocalMachineVSTO=1 for it.
but don't add it to all user.
You need to register the add-in for all users. See Registry Entries for Application-Level Add-Ins for more information.
I'd suggest creating an installer for the add-in to get it deployed easily. The Deploying an Office Solution by Using Windows Installer article describes all the required steps for creating MSI instanllers.
I have a project that adds functionality to Microsoft Word using an XML Expansion Pack. Currently, when the document we give the customer is opened, it loads our pack, which executes the SmartDocInitialize method which adds things to the main menu and toolbar using Microsoft.Office.Core.CommandBar.Controls.Add and the like. Without modifications, when opened in Word 2007 these buttons are added on the Add-Ins ribbon tab, but this isn't ideal since the buttons are all small, not grouped properly, and there is no way to bring the Add-Ins tab to the front when the document is loaded.
I would like to keep this functionality the same if the document is opened in Office 2003, but if the document is opened in Office 2007, I would like to read in an xml file which describes my new Ribbon tab and all of the buttons. Everything I've been able to find online has seemed to lead to the Ribbon file only being loaded if you have a very specific combination of magic (build in Visual Studio and it works, but no information on how you would deploy it to a users box) and will only work if you have an entire project created originally with the Visual Studio tools for Office properties, which I don't currently have.
Our development environment is XP, Visual Studio 2005, C#, .NET 2.0
The Ribbon UI is just not as programatic as the old CommandBars UI. I don't think you can do what you want. As far as I know the only way to programatically modify the Ribbon UI is to have a (COM) Add-in implement the IRibbonExtensibility interface and return a custom XML file (with the Ribbon definition) from the GetCustomUI method. There is no way to add or remove buttons one at a time like you could with the CommandBars UI. It's just totally different. I don't believe you can do what you want from some macros in a document.
I'm not familiar with XML expansion packs, but if you have to install them on the user's PC, perhaps you could install an add-in as well that could load the appropriate ribbon XML for you.
This isn't as hard as it seems.
If you already have your ribbon buttons hooked up to some VBA macros in the document, then you just need to add a reference in your VBA project to your com visible .net assembly.
The .net assembly in addition to being marked com visible (so it shows up as a type library in the references dialog box), has to have some methods that are setup to be callable from VBA.
google "vba .net callable"
its not difficult, mark class as com visible, declare it with a ProgID attribute, make methods public, make sure your methods return simple types, and use regasm to register the assembly on the target machine (not needed on dev box).