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
6
votes
3 answers

How can I programmatically bring up the document properties window in Word and go to the Summary tab?

I am developing a VB6 COM add-in for Microsoft Word and I have added a button to the Ribbon which will save the document to a database. But before the document is saved, I want to take the user to the document properties window so they can fill in…
CowherPower
  • 315
  • 3
  • 11
6
votes
2 answers

How to develop Microsoft office word addin for 64bit version office in vs2010

I have developed an addin for word in vs2010.It's working cool in 32 bit version of office, but its not working on 64bit version of office .Searched a lot and found that For 64-bit Root\Software\Microsoft\Office\application name\Addins\add-in…
Dah Sra
  • 4,107
  • 3
  • 30
  • 69
6
votes
2 answers

Getting started developing add-in for powerpoint

I would like to develop an add-in for Microsoft PowerPoint. I have Visual Studio 2012 installed and ready, but i can't seem to find any simple tutorials or getting started guides on the subject except this brilliant (sarcasm) guide from…
Nicolai Lissau
  • 7,298
  • 5
  • 43
  • 57
6
votes
4 answers

Set custom document properties with Word interop

I want to set some custom document properties of a word document I'm creating in my C# code. To do this, I followed this MSDN article and came up with this code: using Word = Microsoft.Office.Interop.Word; // Version 12.0.0.0 word = new…
F.P
  • 17,421
  • 34
  • 123
  • 189
6
votes
1 answer

Change text backgroundcolor in Word

the situation: .net 3.5 c# or vb.net(also tested) word 2007 add-in I'm trying to set the Background Color of the text to a custom rgb color. The code is the following: Range r = this.Application.ActiveDocument.Range(); r.Text =…
lnu
  • 1,404
  • 1
  • 9
  • 25
5
votes
4 answers

Localize Office add-in based on Office language pack in use rather than Windows' current language

I'm trying to localize my office add-in, I've read through many docs and tutorials on how to do this, but they all teach on how to localize it based on what the current Windows language, not necessarily what office language interface pack is in use.…
Reza S
  • 9,480
  • 3
  • 54
  • 84
5
votes
1 answer

Is any way to add the changes to undo/redo stack made by Excel addin?

Here I am using Office.js API in Excel add-in. When I export any table or information using Excel add-in, the undo and redo buttons are disabled, and the undo/redo stack is cleared. Thank you in advance
5
votes
1 answer

How do I distribute excel office add-in(w/ office.js) in privately?

Q1. Are there any method to distribute excel office add-in(w/ office.js) in privately? (Will office.js add-in also be distributed like VSTO's .exe OR .xla/.xlam macro files with password?) Q2. If I run office add-in server(node.js) on my on-premise…
Jay
  • 63
  • 4
5
votes
0 answers

Functional tests for office-js Excel addin (Selenium?)

We develop office-js based addin for Excel and we've come to a place where we want to write automated functional tests (preferably with Selenium) for desktop version of Excel on Windows. First issue we've encountered was that different combinations…
5
votes
0 answers

How to open a document in 'current window' in office add-in instead of opening in a new window?

I'm working on Office 365 Word Add-in that opens a document. When we open the document via context.application.createDocument(base64string).open(), it launches a new window instead of opening the document in current browser tab (in case of web…
Baig
  • 1,489
  • 1
  • 25
  • 41
5
votes
1 answer

How should I handle reading cookies in an iframe when building an Outlook Addin (third party cookies)

I am currently working on an outlook addin for a service that we provide and am having issues getting it through store submission. My problem is that although the addin works well in Outlook, if you try to load it from Safari on Office 365, the…
Sergio
  • 9,761
  • 16
  • 60
  • 88
5
votes
1 answer

Get Keyboard input for Word process in VSTO AddIn

I am trying to listen to keyboard input in my Word AddIn with the MouseKeyboardActivityMonitor Nugget. When I register the KeyboardHookListener I am able to receive every keyboard input on every programm except Word. Is this maybe couse of some Word…
ninjaxelite
  • 1,139
  • 2
  • 20
  • 43
5
votes
2 answers

Office-ui-fabric-core some icons are not showing

I am building office addins for Project. It is really weird that even though I am using proper icon names some icons are not showing Followed everything from the official documentation…
5
votes
0 answers

Why does PowerPoint reset/clear the CustomDocumentProperties when using "Design Ideas" feature of Office 365?

We've developed a PowerPoint VSTO add-in. To work with multiple Presentations at the same time we use a unique GUID for each presentation and store it in CustomDocumentProperties as mentioned here. With Office 365 Microsoft has introduced a new…
5
votes
1 answer

ADD-IN ERROR This add-in could not be started

Using the Visual Studio 2017 C# Excel 2016/2019 Web Add-In template, I'm trying to create a Basic Add-in to "Insert content into Excel spreadsheets [VS option for project]." All my attempts fail in Excel when I run the project with the message:…
SamG
  • 815
  • 8
  • 12