5,768 questions
1
vote
0
answers
67
views
Microsoft PowerPoint API returns empty placeholder text after recent update
I’m using the Microsoft PowerPoint JavaScript API to generate slides from slide master, where the shapes are created within layouts using GeometricShape. A placeholder text is assigned to each shape ...
2
votes
1
answer
92
views
Getting the font of powerpoint slides using Office JS
I am working on creating a taskPane integration for microsoft powerPoint web and I am trying to get the font of each slide. This is the code I am working with
async function validateSlideDeck() {
...
1
vote
1
answer
179
views
Gather data from Table in word doc via office.js in JSON format
I have a table in a word document that would have merged cells and I am trying to extract data via the word addin using office.js
Example:
Table (with merged columns)
I want to gather data in json i....
1
vote
0
answers
193
views
Different behavior between running excel office script from a button and from code editor directly
I have written some office script to fetch data from server and fill that data to a table in excel.
function main(workbook: ExcelScript.Workbook) {
// Getting People List
// Clear the table ...
0
votes
1
answer
706
views
Using MSAL.js in Outlook Add-in with Office.js authentication
I have a SPA which is run either as standalone web app or as Outlook add-in. I want the user to be able to login using their Microsoft account. However when using the Outlook add-in I want to let ...
0
votes
1
answer
349
views
how to add a custom confirmation prompt using outlook addin
How to add a confirmation prompt before sending an email just wanted to ask once more to confirm as a prompt to the user, I am using Outlook add-in ( dotnet with vanilla JS).
I have gone through the ...
0
votes
0
answers
84
views
How to make an Office dialog box look more like Microsoft's reported message popup?
I am displaying a dialog box in an Outlook add-in (Office.context.ui.displayDialogAsync). Is there a way to make it look more like the popup that you see after reporting a message using Microsoft's ...
-1
votes
1
answer
92
views
Update control label Tab RequestUpdate Office JS
how i can update lable of control using office js Office.RibbonUpdaterData interface please help me in this for ribbon button enable and disable this is working below code
async function updateButton(...
1
vote
1
answer
101
views
Create Excel ranges from list of cell addresses with OfficeJs
I am working with an Excel add-in and am given a list of cell addresses that contain custom functions that I need to reference, ie.,
["A1","B1","C1","F2","...
0
votes
0
answers
51
views
How to export Excel tables to quoted csv files using javascript and Script Lab?
A little over a year ago I wrote a script in Script Lab that would export all of the tables on the active worksheet to individual quoted csv files.
I was running this in M365 Excel on the Desktop.
...
0
votes
0
answers
186
views
no support for OfficeRuntime.auth.getAccessToken in Outlook add-ins but in Excel yes?
The Short Summary: Why does Office.auth.getAccessToken or OfficeRuntime.auth.getAccessToken works on Excel but not on Outlook. And why even though my Outlook version support the Idenitity API it show ...
0
votes
1
answer
125
views
fetch() partially working in office add-in
I am building an office add-in, specifically to be used in Word. I also have an API that I built using Django that accepts and takes in data as 'formData'. Now, in my office add-in I have written a ...
0
votes
1
answer
44
views
make office-js word addin appear by default
is there a way to make an office-js word addin appear in the home ribbon by default, without user interaction through going to My Add-ins via O365 Admin panel or group policy?
1
vote
1
answer
171
views
How to update fields in a Word document
I'm new to Office Web Add-Ins (having come from VSTO land), so I'm probably not understanding something small and silly..
-- Edited and simplified --
I'm trying to get the following sample code to ...
1
vote
0
answers
83
views
XML Schema Validation Error in Add-in Manifest for Word Task Pane with Title Field
I'm developing a Word web add-in with a task pane and dialog using office-js. The task pane functionality works perfectly when I sideload the add-in locally.
Here’s the relevant part of my manifest ...
0
votes
1
answer
157
views
Word addin - Office js Api - ReadOnly document
HI Is it possible via the Office JS API to manipulate the Word document or individual paragraphs so as to make them read-only? To be clear, I would like to do this: https://support.microsoft.com/en-us/...
0
votes
1
answer
94
views
Is it still not possible to open Excel from a Word Add-In?
Is there still not any way to open Excel from an Office.js Word add-in and perform actions in Excel?
I found a similar question from 2020 here: Creating Word document from Excel Add-In with Office.js. ...
1
vote
1
answer
98
views
Word Api office.js - Position of bookmark
I'm using Word's client api, Office.js
After reading a certain bookmark via its name with the function
var bookmark = context.document.getBookmarkRangeOrNullObject("BOOKMARK");
Is it ...
0
votes
0
answers
77
views
How to update a Rune from within a triggered event?
I have a global rune store that keeps track of document properties like so:
export class DocState {
#properties = $state(new Map());
constructor() {}
add(prop: string, value: string) {
...
1
vote
0
answers
45
views
Referencing Custom Tab created using ExcelDna.AddIn in manifest.xml office js add on
If I've created a custom tab using ExcelDna.AddIn, CustomRibbon.xml, how do I deploy an officejs add on, using manifest.xml, so that officejs addon is placed inside that custom tab created from ...
0
votes
0
answers
43
views
Selectively clear cache during Office Addin dev/test
During development and testing of a Word AddIn, I routinely make changes to the manifest and then have to:
Clear my browser cache
Sideload my addin
Otherwise, to remove an add-in sideloaded to Office ...
0
votes
1
answer
86
views
Office Add-In: Excel API Set 1.16 Not Available When Using Local Office.js Version
I'm developing an Excel Add-In using the latest npm version of the JavaScript API and I'm encountering an issue with the latest Excel API set (1.16) functionality.
I’m trying to access the valueAsJson ...
0
votes
1
answer
86
views
How to develop excel/PowerPoint ContentApp add-in
I am trying to create a new content add-in for Excel/PowerPoint, and looking for resources that can help me figure out how to do this.
Here is what I have found so far
https://learn.microsoft.com/en-...
0
votes
0
answers
52
views
What requirement set does messageChild method of dialog api support in Office Js Addin for Outlook?
I am developing a javascript addin for Mail. I want to support Mac Classic Client as well. The minimum required api set for messageChild() method of dialog api is listed as Mail 1.9 and Dialog API 1.2 ...
0
votes
1
answer
39
views
Word add-in: How to navigate to image/range
I am working on an add-in that allows users to insert content from our service into their document. I am able to do this fine. I am able to get a list of all images inserted from our service, and ...
0
votes
1
answer
64
views
how to create a functionfile for office.js with sveltekit
This is more a sveltekit question then a office-js question...
I have an office.js addin built in sveltekit that authenticates users to their domain or live.com. This works fine except for one thing. ...
0
votes
0
answers
45
views
Excel cell external unlinking is taking too much time for context sync for single worksheet
Working with custom excel formulas. When I try to unlink formula in the cells and put only the value back to the cells it takes too much time for context sync. How do I reduce the timing? but not ...
0
votes
1
answer
78
views
How can I make my simple PowerPoint Add-In available to other people?
A friend asked me to develop a simple PowerPoint (365) Add-In since they couldn't find a suitable one in the Office Store.
I opted to create a Web Add-In in Visual Studio, which is working fine when I ...
0
votes
1
answer
35
views
can i get table cell text in Powerpoint add-in
I am working on an PowerPoint add-in using office.js api and I am using React+Typescript. I have a translation api and I translate text from selected shapes and it's working well but I want to ...
1
vote
0
answers
56
views
Excel cell external unlinking is taking too much time for context sync
Working with custom excel formulas. When I try to unlink formula in the cells and put only the value back to the cells it takes too much time for context sync. How do I reduce the timing? Maybe it's ...
1
vote
1
answer
78
views
How to Control Recalculation and Disable Native Refresh Functions in Excel Add-in Using Office.js?
I am developing an Excel add-in with Office.js and need to manage recalculation while keeping Excel's calculation mode set to Automatic. Here’s the issue:
Context:
The add-in uses custom formulas to ...
1
vote
0
answers
109
views
Large Bundle size (13MB) for Outlook React Add-in using Yo Generator
When I create an Outlook Add-in using React Framework through the Yeoman generator, and without applying any modifications, if I run the npm run build I get a bundle of 13MB for the taskpane.js, it ...
1
vote
0
answers
70
views
How to install an Excel add-in created with Office.js privately, without publishing it to the Office store
I am working on an Excel add-in that automates certain specific tasks for my team. I have already created the add-in with Office.js and I have the manifest.xml and the html, css and js files. Is there ...
0
votes
1
answer
52
views
How can I use Office JS add-in to track the coordinates of a shape in PowerPoint?
When I use Office JS (JavaScript API for Office) add-in to track the coordinates of a shape in PowerPoint as it moves but I didn't get any coordinates over slides, I guess we can use the Office ...
0
votes
1
answer
168
views
How to run office add-ins in development on an iPad or other mobile device
I am trying to follow the steps from https://learn.microsoft.com/en-us/office/dev/add-ins/testing/sideload-an-office-add-in-on-ipad and apply them to any of the official samples from https://github....
1
vote
0
answers
56
views
Is it possible to get the language of the text in a Word Add In using Word JS API?
Is there a way of getting the language of text in a document using the Word JS API for an Office Add In? It seems that the Word.Font class does not have this as an option: link
Is there a work around ...
0
votes
2
answers
319
views
Error calling Office.context.mailbox.item.body.getTypeAsync when reading an Outlook message
I'm creating my first Outlook Web Add-in app. When I'm calling Office.context.mailbox.item.body.getTypeAsync when viewing an email in Outlook, I get the error message "Uncaught
TypeError: Office....
1
vote
1
answer
93
views
copyFrom on rangeAreas objects throwing an invalid argument error - Javascript Excel
Using the Excel Javascript API, I'd like to copy values and formatting from one rangeAreas object to another with equal dimensions. According to the docs, copyFrom should work the same with rangeAreas ...
1
vote
0
answers
32
views
Implement functionality to sort the Outlook inbox by date, from the oldest to the newest emails
Is there any way to add email sorting functionality in outlook addin by date, from the oldest to the newest emails through frontend.
In case of any possibility kindly suggest me how can I do this, ...
0
votes
1
answer
78
views
Context Menu Add-in Command(Word) [ExtensionPoint xsi:type="ContextMenu"]
I am using this example from the Microsoft Docs to add a button in the context menu, I am running the validator and the manifest file is valid. This ExtensionPoint is right below the ...
1
vote
0
answers
80
views
Word JS: get a Range object based on start and end indices
Background
I'm writing an add-on to help visually highlight certain text in court opinions, legal memos, and law review articles. As an example:
The question is whether section 404(c) of the FSA bars ...
0
votes
1
answer
42
views
Changing Conditional format rule seems to work but doesn't in office-js
I am trying to write some simple TypeScript code to change a conditional formatting rule in an Excel file. To repro my issue:
Open a blank Excel file
Enter 1 in A1
Click “Home”, Conditional ...
0
votes
0
answers
85
views
How to implement an range selector input using Excel Javascript API?
I have an Excel Add-In that opens a taskpane and, using Excel Javascript API, displays a form that the user fills in. In that form, I need to include an input where the user should be able to select a ...
0
votes
1
answer
45
views
How to Update Ribbon Layout in Word Web Add-in Using Office.js and Manifest
I am developing a Word web add-in using Office.js, and I need to update the layout of the ribbon. I have created a basic ribbon following this documentation
Here is a snapshot of my current ribbon:
...
0
votes
1
answer
240
views
Outlook Web Add-in: itemSend Event Disables Send When Web Server Unavailable
I am building a test Outlook web add-in using office.js. The add-in uses the itemSend event to check various aspects of a message the user is sending. The event works fine. However, if the web server ...
0
votes
0
answers
54
views
We need to move cell A100 below A54
We are freezing rows from A51 to A54 and I have selected cell A100.
await Excel.run(async (context) => {
const sheet = context.workbook.worksheets.getActiveWorksheet();
sheet.freezePanes....
0
votes
1
answer
72
views
Is it possible to have dialogs without address bar when developing for Outlook web?
I am planning to create an extension for Outlook web. I want to show a dialog for e.g. selecting a folder. Having scrolled through the tutorials I've only seen dialogs including an address bar or ...
0
votes
0
answers
65
views
'Loading' text ( loader ) in task pane while initial loading in word web add-in
I'm currently developing a task-pane based Word web add-in. However, I'm encountering an issue when I try to sideload the add-in. The add-in shows a persistent loading screen (see attached image). I'm ...
0
votes
0
answers
50
views
Word Add-In in React. Track Changes not working as expected
I am trying to let an algorithm automatically Track Changes in a Word Document. In this Case I want it to correct a string to in Track Changes Mode. However, the Track Changes Mode is not working as ...
2
votes
1
answer
216
views
Outlook SSO NAA in pure JS without node.js
Outlook on Windows only uses the runtime JS file defined in the manifest for event-based add-ins. How do you import and use msal-browser in this file without using node.js?
I am aware that import is ...