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
0
votes
1 answer

How to disable save, save-as or ctr+c unsing office-js

How can i disable "save","save as", "ctrl-c" from MS Word with add-in written with office-js? I need edit but i need blocking this actions. Is it possible to add an event handler to capture and handler this actions?
0
votes
0 answers

Replacing a paragraph with a new one in Word Add-in

I am trying to specify a paragraph and replace it in my Word Add-in project using Javascript. I am building the add-in from a template generated by the yeoman generator. I am doing this but it is not working so I don't really know if what I am…
0
votes
2 answers

Word Add-in Local Sideloading Problems on Windows10

I am trying to sideload a microsoft word add-in I am working on, ABUformat. I have once sideloaded it successfully. I followed all the steps necessary but recently, the Add-in wouldn't just load successfully. It keeps returning a message: "sorry we…
0
votes
1 answer

Does "Excel.run" Not Work For User Defined Functions?

Is there a way to use Excel.run to fetch data from a workbook and then use that data to calculate a UDF along with the parameters? I know that you can fetch data from the internet and come up with a number…
0
votes
1 answer

Outlook REST API returns different itemId on mobile vs. desktop

From the documentation, when retrieving Office.context.mailbox.item.itemId, if you are doing so from a mobile device (i.e., the Office.context.mailbox.diagnostics.hostname is either OutlookIOS or OutlookAndroid), the itemId will already be properly…
galvatron
  • 145
  • 8
0
votes
1 answer

Converting VSTO to Web Add-In

Is there any way I could insert another document? In VSTO-there is an option to insert document with InsertFile.Looking for something similar here.
0
votes
1 answer

Conditionally load Office.js when webapp is loaded as Outlook Add-in

I'm currently building a web application that can be loaded both as a standalone version in the browser and as an Outlook Add-In. To make use of the Outlook environment, I'm loading office.js within the layout of my web app. I'd like to check…
0
votes
0 answers

Getting "Invalid API call in the current context" error while writing data to excel using office.js from Task pane application

Actual Issue: Getting error message "Invalid API call in the current context" from office.js (API method: Office.context.document.bindings.addFromNamedItemAsync) Issue scenarios: 1) If a read/write operation is being performed on a namerange in…
0
votes
1 answer

is there way to capture appointment discard event using outlook add-in/office-js

Outlook add-ins provides a way to handle email or block email users from certain actions using Application.ItemSend event is there similar way to capture discard click event through the office-js.? I need to call 3rd party api if user decided to…
0
votes
2 answers

Excel-addin- Office API Javascript - office.js warning and telemetryproxy.html not found

I tried to load my excel-addin on chrome browser. I have added office.js api and I am getting warning and error in console as warning: Warning: Office.js is loaded outside of Office client Error: Failed to load resource: the server responded with a…
user10171650
0
votes
1 answer

How to implement the red curvy line that word shows during misspellings using Word API/Office JS?

I am using ScriptLab to develop a word addin. My current goal is now to underline a word (In some way, I know this word) in red curvy line. This is something that word shows when you make misspelled something or made an error. I was able to do this.…
0
votes
1 answer

Focus Custom tab by default while opening the office 365 excel for 1st time

I have create a custom tab along with few groups in excel via manifest.xml. Now I want to know, how can I focus to open the custom tab instead of Home by default while opening the excel for 1st time. What I have to write on manifest .xml for that. I…
Rajib Prm
  • 1
  • 1
0
votes
1 answer

How to set Table Row height and the Cell Options as Fit Text with Content Control in word Addin | Officejs

I have existing word plugin in C# and I'm converting it to Office.js. My requirement is to Add Table in word with 1 row and 1 column. The Cell text would be Content Control of table and text should fit to entire row and also Specify the Row height…
Rakesh
  • 11
  • 1
0
votes
0 answers

Error 12002 using Office-js-helpers or Office.context.ui.displayDialogAsync

I am using Office-js-helpers and Office.context.ui.displayDialogAsync to authenticate users in our Outlook Add-in. The dialog opens fine and I can authenticate using our IdentityServer4 url (e.g. /connect/authenticate with redirectUrl…
dmc
  • 807
  • 2
  • 10
  • 25
0
votes
1 answer

open external desktop application from MS office add-in

I am developing an MS office Web based Add-in using the latest javascript API.The add-in is dependent on an external desktop application. The external application starts a server on let's say localhost:3000, and the add-in communicate with that…