FAQ Database Discussion Community


What is the difference between an MS office app and MS office add in

ms-office,outlook-addin,office365,office-addins,office-app
I was trying to find a way to publish an outlook add in to office store. But I found out that we can publish only office apps and not the add ins to the office store. Hence I wanted to know what is the difference between an office app and...

Office Add-in Ribbon Button Sizes and Properties Documentation

visual-studio-2013,office-addins
I'm creating a custom ribbon for an outlook addin, but the button sizes, large, medium, and small are not defined anywhere. What are the size I should use for large/medium/small images in Microsoft.Office.Tools.Ribbon.RibbonButton.Button ? Will it autoresize or is there a certain size I need to use? EDIT: Seems in...

change the Label of a button in ribbon word add in

vsto,ribbon,office-addins
I'm trying to create a simple Word add-in. I the Ribbon a have create a button and I want to change its label depending on the type of word document. the document is a mail merge that has two types of models: Demand and Response. I want to have button...

MailItem SaveAs() Method FIletypes

c#,vsto,outlook-addin,office-addins
When I pass olMHTML it saves it with .msg extension, but if I change the extension to .mht it works as an mht file perfectly and if I don't I have trouble opening the file with .msg extension. If I save it as olMSGUnicode, it saves with no extension but...

VSTO Outlook Addin Dialog Boxes

c#,wpf,vsto,outlook-addin,office-addins
I've been trying to figure out the correct way to pop up a dialog box in a way similar to MessageBox.Show in my VSTO addin. I read this could be achieved using WPF, but is there a better way? I've found many different examples most of which are in VBA,...

How to close instance created by adding doc.InlineShapes.AddOLEObject

c#,.net,vsto,office-addins
I am inserting a word document into a word document by doc.InlineShapes.AddOLEObject. doc.InlineShapes.AddOLEObject(System.Type.Missing, filename, true, false, System.Type.Missing, System.Type.Missing, System.Type.Missing, range); It inserts the embedded document,but after closing the main word file, WINWORD.EXE process still running. How to solve this problem.. can anyone please help me?...

Publishing Outlook/Excel add to the office store

ms-office,outlook-addin,publishing,excel-addins,office-addins
I have developed an outlook add-in and an excel add-in and created there respective installers. Now I want to publish these installers to the Microsoft office store(https://store.office.com/). Can anyone provide me the steps to do that?...

How to capture “Print Tab” click event at the backstage in Outlook 2010 ?

outlook,outlook-addin,outlook-2010,office-addins
I want to capture the click events in "TabPrint" at the backstage of outlook 2010. Followint is what I have done so far I have defined a custom UI in xml as following. I have directed every event to one method (which is OnPrintClick) <?xml version="1.0" encoding="utf-8" ?> <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"...

MailItem user property of type olDateTime showing by default 12/30/1899 value. How can we show empty instead?

c#,vsto,outlook-addin,office-addins
I have created a user property on mailitem called "DueDate" i am setting default value null for this user property but when change the view in outlook & add the DueDate custom column on default view, it is showing "12/30/1899" value. var prop = mailItemObject.UserProperties.Add("DueDate", Outlook.OlUserPropertyType.olDateTime, null, null); prop.Value =...

Deploying VSTO Addin with Windows Installer

c#,vsto,outlook-addin,office-addins
I found the documentation here: https://msdn.microsoft.com/en-us/library/cc442767.aspx But in my solution I do not have a OfficeAddInSetup project so I assume I am to add a second project with installshield to achieve this, but in the docs it references VSTO 2010 redistributable. I am using 2013. Are the directions any different...

Addin custom menu in Microsoft Office

ms-office,ribbon,office-addins
I want to add a custom menu (addin) inside FileMenu after "New" menu in office 2010. Previously i have the similar add-in for Office 2007 but custumUI.xml has changed for office 2010 and 2013. I tried required changes but couldn't get the Menu in Office 2010 and 2013. Office 2007...

How to determine if an Office Add-in is running under Excel or Excel Online?

javascript,excel,office-addins
I'm writing an Office Add-in (formerly, Apps for Office). I'm using office.js and in some point of code I want to check if the app is running in excel (desktop software) or running on the web (Excel Online) Something like: if (Office.IsRunningOnWeb){ // Do something. } ...