Questions tagged [apps-for-office]

Add-ins for office (formerly Apps for Office) extend Microsoft Office documents using JavaScript and web technologies.

See Microsoft's developer documentation on Add-ins for Office and SharePoint. For specific programming related questions, please refer to the tag office-js. Do not confuse with office-app.

62 questions
17
votes
1 answer

Place comments through Office Javascript API 1.1

My task is to place a comment via Office Javascript API in a Word document (.docx) compatible to Word 2007 or later. I found, that there is no direct way to do this via Microsoft API. Since I am able to pass OOXML to the Word document, I thought…
rzo1
  • 5,561
  • 3
  • 25
  • 64
8
votes
2 answers

How can a range be used across different Word.run contexts?

I have created a taskpane addin for word that runs a search and displays information about the results as a list to the user. When the user clicks on an item in the list I want to select the range in word to show the user the location of the…
Tom Waddell
  • 129
  • 1
  • 5
5
votes
1 answer

How to get User's actual Email Id in Outlook Add-in Integration

I have integrated created one Add-In to be integrated in Outlook Mail. I have used Office inbuilt code (Javascript Code) for it. Now to test Add-in i have signup in Microsoft with my personal email id.After sign up i found that in Outlook Mail,…
Alex Patel
  • 251
  • 3
  • 21
5
votes
1 answer

What browser / browser engine do Office Add-ins use?

So I am trying to get started developing Office 365 Add-ins (previously Apps for Office), and I was wondering what browser or browser engine Office uses when it renders your app. I tried using JavaScript's navigator.appCodeName and…
James Parsons
  • 6,097
  • 12
  • 68
  • 108
4
votes
0 answers

Parsing Ooxml using Open XML SDK

I'm using Javascript API for Office to get ooxml of parts of the document using Binding.getDataAsync. The result is that I have ooxml text which represent part of the document: Now what I want is to alter this XML for example to put a table around…
AHMED EL-HAROUNY
  • 836
  • 6
  • 17
4
votes
1 answer

Debugging task-pane Apps for Office

I am trying to debug my App for Office, which is running in a task-pane of Microsoft Excel. I am running this with Visual Studio 2012. The functionality I want is simple - since all Apps for Office is creating is an Internet Explorer task pane,…
Simon Kiely
  • 5,880
  • 28
  • 94
  • 180
4
votes
2 answers

Simple querying a database using apps for office?

I am trying to begin writing my first app for office. What I would like to do is simple. I have a database of IDs for my customers. When I hover over one of these IDs, I'd like the app to query a database and display the customers info on the right…
Simon Kiely
  • 5,880
  • 28
  • 94
  • 180
3
votes
1 answer

How can I get the current Excel file in Office JavaScript API?

I am developing a tab pane app in Excel which needs to read the current document. In Word, the Office JavaScript API has the method Office.context.document.getFileAsync(), but this is not available in Excel. I can get the URL of the document with…
Paul T Davies
  • 2,527
  • 2
  • 22
  • 39
3
votes
0 answers

How to retrieve excel cell formatting properties in app-for-office add-in

I'm starting to play around with apps for office - specifically working on a task-pane app for excel that needs to retrieve cell formatting properties from a range. It is possible to set properties in a bound table with…
bruce
  • 1,408
  • 11
  • 33
3
votes
4 answers

Office.context.document.getFileAsync throwing errors

I am getting a very strange issue whereby when I try to extract the word document as a compressed file for processing in my MS Word Task Pane MVC app the third time, it will blow up. Here is the…
Benjamin Wong
  • 599
  • 1
  • 8
  • 21
3
votes
0 answers

Apps for Office - how to manipulate slide in Powerpoint

I want to be able to insert some text(or anything else) into a current (or any) slide in PowerPoint using the JavaScript API. I can't find any examples. I've also browsed through the API Reference and haven't found any clues. (I'm not even sure if…
kubal5003
  • 7,186
  • 8
  • 52
  • 90
2
votes
1 answer

How to detect old doc format in Word js api

I have created a taskpane addin for word that is using the Document.getFileAsync method to get the document contents in Compressed format (docx). This works correctly for .docx files, but unsurprisingly fails if an old .doc file is used. I get the…
Tom Waddell
  • 129
  • 1
  • 5
2
votes
1 answer

Excel JS Add-In works in Excel but not Excel Online

I've built an Excel JS Task Pane add-in using the WoodGrove Expense Trends sample and have validated that it runs correctly in Excel 2016 on my machine. However, when I go to Excel Online and try to add the add-in (via uploading the manifest from my…
2
votes
1 answer

Reusing range object in Excel.run for apps for office

I am new to APPS for OFFICE I am trying a simple code in which I Validate Excel Data. So Rather than nesting things in ctx.sync() again and again, I am writing code like this:- // **json** object used beneath is somewhat like: …
2
votes
1 answer

Outlook App for Office task pane

I am using Visual Studio 2015 and I am trying to create an App for Office for Outlook. I would like to create a task pane but there is no option to select Outlook when creating a task pane app. Creating a mail app places the app within the mail…
1
2 3 4 5