Questions tagged [office-addins]

For the new Add-ins for Office please also add the office-js tag to your question. Microsoft Visual Studio provides project templates you can use to create application-level add-ins for Microsoft Office 2010 and Office 2007. You can use add-ins to automate Office, extend Office features, or customize the Office user interface.

Add-ins for Office are a new way to create extensibility solutions for Microsoft Office. These Add-ins can be run as a taskpane on the side or inside the document dependent on the application.

Visual Studio Tools for Office (VSTO) is a set of development tools that allows the development of Office automation solutions (add-in or document customization), using .NET and the Visual Studio IDE.

Important links:

3343 questions
8
votes
3 answers

Launching WPF windows from an Office add in

I have created an office add-in that holds an instance of a WPF Application. When the user clicks buttons on the add-in, I launch different windows by doing the following: MyViewModel viewModel = new MyViewModel(string infoFromOffice); MyWindow view…
Coder1095
  • 828
  • 10
  • 25
7
votes
1 answer

Excel Javascript Add-in: how to open ExecuteFunction in the taskpane rather than new iframe?

I'm trying to use the Excel Javascript API to create an addin that: Adds multiple buttons on the Home tab. Each of the buttons opens the taskpane to a different screen. Each of these taskpanes runs in the same runtime (e.g. I can share data…
Nate Rush
  • 360
  • 2
  • 14
7
votes
2 answers

How do I add a bookmark within the body of a Word doc using Office JS

The Office JS has provided the following function in preview, but I couldn't find any example. Here is what I tried but it doesn't seem to work, any idea what I am missing here, since this code inserts the text but the bookmark is not…
Baig
  • 1,489
  • 1
  • 25
  • 41
7
votes
1 answer

"Add-In Warning. The license information for this add-in is missing or expired, so it may have limited functionality"

One of our customers is facing an issue while trying to activate an app created by them. The app is published as free of charge. Location: https://store.office.com/en-001/app.aspx?assetid=WA104379484&ui=en-US&rs=en-001&ad=US&appredirect=false It is…
7
votes
2 answers

Making a Shape top-most

In my Word add-in, I have a Word Document object which contains a particular Section. In this Section, I append a Shape: var shape =…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
6
votes
3 answers

Outlook 2007 Add-in: How to add an icon to an msoControlButton

Background: I'm developing an Outlook 2007 Add-in in VS2010 in C#. The specific thing that I'm doing is adding a menu-item to the context menu associated with an email. I do this with the following code: private void ThisAddIn_Startup(object…
kmarks2
  • 4,755
  • 10
  • 48
  • 77
6
votes
1 answer

Installation of VSTO Office addin using WiX

I've made an Excel addin and tried to install it using this answer: How do you use WiX to deploy VSTO 3.0 addins? It doesn't work this way and I figured out that when Visual Studio deploys addins it creates additional registry keys under…
DirtyNerd
  • 71
  • 3
6
votes
0 answers

Outlook 365 dialog open for too long crashes outlook addin

I have set up a very simple functions.html which launches a likewise simple dialog that only registers Office.initialize with a console log. If left open too long I get a large error in the console and the dialog becomes unclosable except by…
matthewdaniel
  • 1,842
  • 4
  • 21
  • 35
6
votes
1 answer

Word Add-in CustomXMLParts data modelling and/or performance optimization

Environment: Mac 10.12.6, Word 2016 (16.11.1), @microsoft/office-js "^1.1.4" I was wondering if there were any guidelines or best practices in terms of how to use CustomXMLParts in order to maximize read/write performance, or if there is an 'ideal'…
SJoshi
  • 1,866
  • 24
  • 47
6
votes
3 answers

Remove/Update Excel Add-In Sideloaded via Shared Catalog

I am developing/testing an Excel Add-In. I added it to the desktop version using the "shared folder catalog" process outlined…
Sam B
  • 187
  • 12
6
votes
3 answers

Office Add-in (web app) can be completely offline (without web server)?

I want to create an Office Add-In with some HTML + JavaScript for sell in Office Store. And this add-in no need using any server side facilities. But if I understood https://dev.office.com/getting-started/addins the source files of Add-in must…
6
votes
2 answers

Getting token in Office 365 Oauth2 authentication

I am implementing Oauth 2 authentication for Office 365 account in a java based server side application. After reading the documentation, I have done the following things: I have office 365 subscription. I have created an app in Azure Actve…
6
votes
1 answer

Office Add-in development: Insert image/picture in Word 2016

I would like to ask as to what is the best way to insert an image/picture to the document in JavaScript? I am weighing in between an online and offline images but don't know where to start. I've tried searching the API references but with the lack…
vegavegs
  • 119
  • 1
  • 9
6
votes
2 answers

Office.context.mailbox.item.body.getAsync() method does not work in outlook mac 2016

In office 365 outlook add-in, Office.context.mailbox.item.body.getAsync() method does not work in outlook Mac. But it works fine in safari and chrome. office js reference is "https://appsforoffice.microsoft.com/lib/1/hosted/office.js" here is the…
DevÁsith
  • 1,072
  • 12
  • 38
6
votes
1 answer

Office JS Api - Permission Denied Issue

I'm working on an addin for Excel, the manifest has permission for ReadWriteDocument. I'm adding a handler to Office.EventType.DocumentSelectionChanged Event First time, I insert the addin in Excel Online, it works perfectly. Later if the access the…
Engit
  • 158
  • 1
  • 9