1,062 questions with JavaScript API tags

Sort by: Updated
1 answer

How to repair invalid SpeechRecognition API after edge Version 111.0.1661.54

Recently, after I updated my Edge browser, I discovered some speech-to-text extensions were unable to recognize my voice. Through my research, I found that the reason could be due to an API called SpeechRecognition. In Chrome, the speech-to-text API used…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,587 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2023-03-26T02:23:14.3566667+00:00
Hilbrand Valham 0 Reputation points
edited a comment 2025-05-27T10:32:06.9566667+00:00
Ahron Singer 0 Reputation points
0 answers

How to insert content at the end of a specific section in Word Add-in using Office.js?

Question: I'm developing a Word Add-in using Office.js and inserting reference links under a "References" heading. Issue: Each new reference is being inserted at the top of the "References" section, causing the order to be…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-05-21T04:36:26.9933333+00:00
Huzefa Khan 0 Reputation points
0 answers

Word.Document.styles is undefined at runtime in Word for Mac 16.87 (WordApi 1.4 manifest)

Body: We are developing a Word Office Add-in and encountering a persistent issue where context.document.styles evaluates to undefined at runtime. This occurs specifically in Microsoft Word for Mac version 16.87, even when our add-in's manifest specifies…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-05-18T16:12:13.88+00:00
步清 苏 0 Reputation points
edited the question 2025-05-18T16:21:01.5633333+00:00
步清 苏 0 Reputation points
0 answers

Using Office-URI-Schemas to create a link for opening Word with an add-in open in the Browser (Office365)

I am currently developing an add-in that heavily relies on the possibility to provied a link for a customer, that automatically starts a word instance with that add-in open. I have already found the documentation for Office-URI-Schemas, and can…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-05-08T09:41:50.94+00:00
Peter Spiegler 6 Reputation points
1 answer

JavaScript not working with ssrs report in edge

I working with an ssrs document and have images with a go to url that I inserted a JavaScript javascrpt:void(window.open http:\ the command completed works on a url command line within edge but if I click on the item nothing happens with the ssrs…

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
3,046 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2024-08-20T03:26:06.5466667+00:00
Mark Tash 20 Reputation points
commented 2025-05-06T18:15:33.6566667+00:00
Todd Walker 0 Reputation points
0 answers

Emails sent via Office.js add-in not rendering correctly in inbox

Hi everyone, I’ve developed a custom Outlook add-in using OfficeJS and I’m encountering an issue related to rendering HTML content inserted into the message body via the setSignatureAsync method. The problem specifically occurs **when a message is…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-05-05T11:59:13.8733333+00:00
Emil Karapetyan 0 Reputation points
0 answers

Outlook Add-in: Conditional behavior in manifest based on requirement set

Hiya, I develop an Office Add-in for Outlook that works with the message send functionality. Outlook Add-ins have two features for message send functionality, the ItemSend ExtensionPoint and the OnMessageSend LaunchEvent extension point. I'm wondering if…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-04-24T16:48:02.9+00:00
Alexander Meyer 0 Reputation points
edited the question 2025-04-24T16:48:29.42+00:00
Alexander Meyer 0 Reputation points
1 answer

How to remove debug pop up on add in load

Hello all, Currently developing a JavaScript add-in for Microsoft word and are looking to start running live tests with users. To facilitate this I wish to remove the following pop-up that appears when the add in button is pressed. (Clicking…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,770 questions
Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
960 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2023-03-24T09:39:49.4133333+00:00
Keith McClung 10 Reputation points
commented 2025-04-23T16:32:36.13+00:00
Martin Parkur 0 Reputation points
0 answers

Is there a way to detect that a user has closed the smart alert dialog box?

Let's say my event-based addin caused this dialog to appears after user clicks send because they haven't fulfilled certain conditions. Ref:…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-04-15T15:19:21.7+00:00
Mark 0 Reputation points
0 answers

office.js:76 Uncaught Error: Office.js has not fully loaded. Your app must call "Office.onReady()" as part of it's loading sequence (or set the "Office.initialize" function). If your app has this functionality, try reloading this page.

I'm developing a Word Add-in using the Yeoman generator and have integrated custom APIs for the authentication flow. Although I've implemented Office.onReady() in both my main platform and within the Add-in code, I’m consistently encountering the…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-04-14T11:28:41.33+00:00
diksha tiwari 0 Reputation points
0 answers

Insert Word document into Outlook email using office.js

Is it possible to insert a Word document into an Outlook email using office.js? I know how to do it using VBA/VSTO but am struggling in office.js I can see that HTML can be inserted, but I'm unsure how to convert a Word document to HTML for insertion…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-04-07T06:24:13.4533333+00:00
Matthew Fitzmaurice 0 Reputation points
1 answer

Using Microsoft 365 Defender with GCC-HIGH endpoint

Hello, We are attempting to connect to Microsoft 365 Defender using API requests. We've tried both the device code flow and the client credentials flow. Since our tenant is GCC-HIGH, we have ensured that our requests use the correct resource and scope…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-02-27T09:49:45.9433333+00:00
itay4 61 Reputation points
edited a comment 2025-03-31T14:39:54.0066667+00:00
itay4 61 Reputation points
1 answer

How to detect hyperlinks using Word office js API

I develop an office add-in for Word (React frontend, typescript). I need to retrieve all hyperlinks in a Word document using the API (https://learn.microsoft.com/en-us/javascript/api/word?view=word-js-preview). But I cannot figure out how to do that…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2021-12-06T08:50:56.327+00:00
Anonymous
edited a comment 2025-03-27T05:27:51.79+00:00
Muhammad Talha 0 Reputation points
1 answer

Background Color of a Slide

How can I get the background color of a slide or the presentation theme? I cannot find such an option in the documentation. For example, most presentations (including the standard one) have a white bg. But some have a different color, I want to get…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-03-01T21:53:10.83+00:00
Simon Paul 20 Reputation points
answered 2025-03-26T07:00:35.1266667+00:00
Ilgar Zarbaliyev 26 Reputation points MVP
1 answer

Unable to download Office for the first time

I have recently purchased a product key for Office 2024 Standard Edition. I start by entering my product key at setup.office.com. My product key gets me to a 2nd page with terms and conditions. I click the redeem. I am taken to a 3rd page where I can…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-03-19T14:13:31.2666667+00:00
D Baillie 0 Reputation points
answered 2025-03-26T06:56:18.3433333+00:00
Ilgar Zarbaliyev 26 Reputation points MVP
1 answer

Shapes , Text boxes in header and footer

Hi there, I've developed an office add-in to get word docs out of my backend app as base64 and on my frontend app i insert this either into newly created document or the context document. Now i'm facing a problem of getting my elements the right styles…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-03-20T10:01:57.89+00:00
Abbas, Yazan [cronos] 0 Reputation points
answered 2025-03-26T06:55:02.9233333+00:00
Ilgar Zarbaliyev 26 Reputation points MVP
0 answers

Office.js Not Fully Loaded Despite Calling Office.onReady()

When developing a Word add-in, the following error message is encountered: "Office.js has not fully loaded. Your app must call 'Office.onReady()' as part of its loading sequence (or set the 'Office.initialize' function). If your app has this…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-03-18T22:15:53.7533333+00:00
Jesse Shalev 0 Reputation points
0 answers

Cross-domain messaging not working as expected in Office dialog API

We are using OfficeDialogAPI to open dialog boxes in our Office Add-in. While closing the Dialog Box, we need to send some data to the parent host and we are using Office.context.ui.messageParent & Office.EventType.DialogMessageReceived to handle…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-03-18T09:44:56.7266667+00:00
Ravi Varma Bathula 0 Reputation points
1 answer

How to Retrieve Local and Web Paths of an Excel Workbook from OneDrive using JavaScript API

A OneDrive folder has been synchronized on a local machine, allowing workbooks to be opened directly from this folder. The local and web paths can be obtained using the Info => Copy path and Info => Copy local path options, as highlighted in the…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,176 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,321 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,359 questions
asked 2025-02-18T16:52:25.0666667+00:00
Kashif Bashir Bhatti 36 Reputation points
answered 2025-03-18T08:52:54.53+00:00
Adrian Wu 0 Reputation points Microsoft Employee
0 answers

User prompts within Office scripts

Is functionality within Office Scripts to create user prompts coming?

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
1,062 questions
asked 2025-03-14T00:47:15.63+00:00
Mike Healey 0 Reputation points