Questions tagged [office-js-helpers]

A collection of helpers to simplify development of Office Add-ins & Microsoft Teams Tabs

A collection of helpers to simplify development of Office Add-ins & Microsoft Teams Tabs (from https://github.com/OfficeDev/office-js-helpers)

113 questions
1
vote
1 answer

How to make a GET request to http:localhost from word javascript api?

I am trying to develop a word addin. It will provide corrections for a word based on the context. The language will be Bengali. My idea is that there will be a python server in localhost. Yes it will run on the localhost. Otherwise if it is a…
1
vote
1 answer

Adding change listeners to a selection (paragraph / sentence / or word) in Microsoft Word add-in API

Is it possible to add change listeners to a certain chunk in the document, that when it changes it would trigger an event in JavaScript and notify the add-in using Office.js? An example would be selecting a paragraph and adding a listener, which…
Mavi Domates
  • 4,262
  • 2
  • 26
  • 45
1
vote
1 answer

Not able to load header and footer when loading base64 encoded .docx file using OfficeJS API

Let me brief out the scenario: We have base64 encoded .docx file. Our Word Add-in has a functionality in which we request in-house API to get base64 encoded .docx file. This base64 encoded .docx file (which has header, footer and body) is loaded…
Chirag Vidani
  • 2,519
  • 18
  • 26
1
vote
1 answer

How to define Excel using microsoft office-js in Angular 6

I am following this site to integrate office js On declaring like this: import * as Excel from '@microsoft/office-js/excel' It's showing compile time error: Cannot find module '@microsoft/office-js/excel' On declaring like this: declare var Excel:…
Adrita Sharma
  • 21,581
  • 10
  • 69
  • 79
1
vote
1 answer

which webkit does Office 365 uses by default

I want to know which webkit is used by Office 365 for rendering the web portion [ both on the task pane as well as the dialogue ]
Deb
  • 349
  • 2
  • 7
  • 14
1
vote
2 answers

Office.js web WORD add-in: window.open() method is not working with "about:blank" URL

Summary: window.Open('') or window.Open('about:blank') works with JavaScript in a normal html file as can be tested here. But it does not seem to work in an Office.js add-in. Details: On my Windows 10 desktop with VS2017 I created this Office.js…
nam
  • 21,967
  • 37
  • 158
  • 332
1
vote
1 answer

displayDialogAsync method of Office.js API not opening the page

I used this Microsoft tutorial to build a WORD add-in in VS2017. The add-in works as expected. Then, for a test, I dded a button btnTest in Home.html file's task pane markup. The btnTest calls the following function in Home.js. When you click the…
nam
  • 21,967
  • 37
  • 158
  • 332
1
vote
1 answer

Using Office Dialog API with Angular 2 (for outlook addin)

this is a basic question: I have an angular 2 app, and I'm trying to use Office's dialog API. Basically, I have a route https://domain/success that I want to open up in the dialog. More specifically, here is what I'm trying I am at the route…
1
vote
1 answer

How to download a file using office.js excel add-in?

Is there any way to download a file using office.js excel add-in? Simple href is now downloading the file.
1
vote
0 answers

Timezone conversions in outlook addin

I am developing an addin for outlook appointments, where Office.context.mailbox.item.start gives Start date time of current appointment in the client Machine local timezone. I can convert it to UTC easily. But problem comes then, if user has set his…
1
vote
1 answer

Can I change the font size of specific words of excel cell in Office.js?

I have a requirement to change the font size of specific words (not the complete cell) of excel cell in Office.js. Is there any provision for this in Office.js?
1
vote
0 answers

Add-in For 'Off the grid' customer

I have developed an add-in for our company which basically loads part of our app into an iframe. This is fine, But we have a governmental customer whos users are essentially off the grid ie no outside internet access, The web-app portion of the…
DerekReilly1990
  • 49
  • 2
  • 10
1
vote
1 answer

Word add-in cannot be installed on Word 2016 (MSO 16.0.4266.1001 64 bits)

These days, I have found my add-in cannot be installed on Word 2016 (MSO 16.0.4266.1001 64 bits). No icon showed up in menu. Just open a window like below: So I went to dev.office.com and found this: *Note: The build number for Office 2016…
Zhili
  • 141
  • 11
1
vote
1 answer

Problems with Azure application manifest trying to authenticate with office-js-helpers in an Outlook web add-in

I'm using office-js-helpers in order to get an OAuth token in my Outlook web add-in so I can use it for OAuthCredentials with the EWS Managed API (code for that is in an Azure App Service using the ASP.NET Web API). I have configured my app's…
0
votes
0 answers

Office JS Word AddIn Authentification against API

I am working on an enterprise software which works independently from Office 365/AzureAD. Now I want to create a JS Word addin that access protected resources of this application via an API (files, word templates, personal data of…