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
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
0 answers

Office JS application.createDocument() opens new window with closed add-in

We are loading a base64 document from the backend and opening it in our Word-addin (using Office JS APIs). We are using application.createDocument(base64) to do so. This causes the Word application to open an entirely new window for the new…
5
votes
1 answer

"Object.defineProperty(exports, "__esModule", { value: true });" blocks functions execution in FunctionFile

I started a Office Web Add-in with Typescript&React project by following this tutorial: https://github.com/OfficeDev/office-js-docs-pr/blob/master/docs/includes/file-get-started-excel-react.md . Any taskpane function and page works properly, but…
mm90849491
  • 71
  • 1
  • 1
  • 5
4
votes
1 answer

Office API getAccessTokenAsync result yields InvalidAuthenticationToken response from Graph

i have been trying to tackle this issues for a while now, i am workin on an Office-js addin for Outlook and is trying to access Microsoft Graph data through my addin. But i have been unable to authenticate the token i recieve from…
3
votes
1 answer

Auto-opening side-loaded taskpane

Is it possible to auto-open plugins that are in developer mode? According to documentation The pane that you designate to open automatically will only open if the add-in is already installed on the user's device. If the user does not have the…
blackening
  • 903
  • 6
  • 14
3
votes
2 answers

Outlook web add-in calling Microsoft Graph

I'm following office-js-helpers to enable SSO login, and then use the access token to call Graph API. But, Authentication will open the login windows in a new tab even I have added in manifest.xml…
Edward
  • 28,296
  • 11
  • 76
  • 121
3
votes
1 answer

read the settings of a office add-in manifest file from the angular app which is inside the Excel task pane

Requirement: Read the AutoConfig element in a manifest file using office.js/angular app and will hide/show the content in my angular app in task pane based on the AutoConfig value. The 1st approach I will put a custom tag i.e…
3
votes
1 answer

Insert a shape in Powerpoint Slide (Office Javascript API)

Is there a possibility to add a shape (or anything else except for plain text or image) within a PowerPoint slide? I couldn't find anything on it and really hope it's possible. I already added this request on UserVoice…
3
votes
1 answer

How can I reference the beta version of typescript defenition of office JS using NPM?

As per this link the beta versions are in the dist folder under the package. but how do i refence this file in my project?
Joseph Abraham
  • 347
  • 4
  • 10
2
votes
0 answers

Word web add-in works only after cleaning up the cache

I am working on word web add-in. There are two issues which I am always facing in non development environment. Sometimes word add-in displays blank screen in non-dev environments. Only after cleaning up the cache as mentioned in the below MS link,…
2
votes
1 answer

How to get colour palette of chart in excel add-in using office JS?

We are developing an excel add-in with react and office js APIs. We have added a chart and set the color to the chart from the color palette(chart-design -> Change Colours -> Colourful palette4). Please refer the below screenshot -> We wanted to…
Sachin Warke
  • 126
  • 1
  • 1
  • 9
2
votes
1 answer

Persisting the date format in excel while fetching data

We have a excel add in built using office.js. Where we read data from a data range ( ie A1:C10 ) which might consist of a date column. Please refer the image below Our add in reads the data and form a CSV dataset which is downloaded when the user…
2
votes
1 answer

Customize the Styles of Office Word Context Using Office.js

I want to customize the "Heading1" and "Heading2" styles programatically using Ooxml via office.js library in visual studio code. I have searched through google and many documentations but don't still get anything in that line. Is it possible to…
2
votes
1 answer

Blank Auth Dialog Window in Outlook React Addin

I have tried using Dialog API and office-js-helpers for authenticating users in my Outlook Addin React app and both of them create pop-ups for auth but they are both blank screens. Both methods return the following error The character encoding of…
2
votes
2 answers

Get all available values in Office.context.mailbox.item for Outlook

Is there an api to access get all available values async in Office.js, specifically Office.context.mailbox.item in Outlook? I do not see anything in the docs. I need to capture 10 or so fields, and to date have only implemented with callbacks,…
nrako
  • 2,952
  • 17
  • 30
1
2 3 4 5 6 7 8