5,768 questions
0
votes
0
answers
83
views
Azure Active Directory app for unified manifest by microsoft
As Microsoft is rolling out Unified manifest for Teams app and outlook add-in. Will there be a single Azure AD app required for both or both Teams app & outlook add-in can have their separate ...
0
votes
0
answers
44
views
Get row changed and update cell in column D
I am trying to use OfficeJS in Excel Online to add a timestamp when a row is changed (specifically column A) to Column D on the same row.
I've been trying to modify the Scripts Lab example, below, but ...
0
votes
0
answers
84
views
Office Word JS API: How to change font for current caret position
I'm new to Office Add-ins and I'm trying to realize the following behavior on MS Word with Office Word addin,
but I could not find any way to realize it.
if a user changes checkbox status on task ...
0
votes
0
answers
103
views
Office js add-in checking if the current user has purchased a related subscription
I'm working on an Excel addin that has a free set of basic features and an advanced set that can be purchased by subscription.
I see that I can do that using the Commercial Marketplace with a SaaS ...
0
votes
1
answer
395
views
Excel Office Add-in (Office.js) Throws Error When Trying to Read a NamedItem's Range Object on Desktop Excel
The following is a snippet of the code I'm trying to run:
Excel.run(function (context) {
const startTerm = context.workbook.names.getItem("StartTerm").getRange();
startTerm.load();
...
0
votes
1
answer
39
views
TS2339: Property 'getOoxml' does not exist on type 'Worksheet'
using node v20.12.0
"react": "^18.2.0"
I have create react application using yo man generator for office version 5.0.0.
file code is like:
async function getExcelOOXML() {
try {...
1
vote
0
answers
40
views
office.js item.close() and inline replies in outlook
I am looking for a way to programmatically using javascript/office.js close the mail/reply item when there is an inline reply. ( the .close() method works if the Outlook reply is popped out. )
Our add-...
1
vote
0
answers
31
views
Difficulty Embedding Fonts in PowerPoint Slides via insertSlidesFromBase64 Method
I'm encountering an issue with the insertSlidesFromBase64 method in PowerPoint. When I insert slides using this method, the embedded fonts in the slides are not being carried over. Specifically, I'm ...
0
votes
0
answers
59
views
Inline pictures: Add margin
Is it possible in VBA or VSTO to add left/right margins to an inline image? I'm currently using space characters to create horizontal gap between two side-by-side inline pictures, but it is not ...
0
votes
1
answer
56
views
How to pass data from taskpane to a newly-created email?
My addin has a create new email function that would call displayNewMessageFormAsync(). I would like my event-based addin to access some data object originating from the caller (taskpane) in the new ...
0
votes
0
answers
44
views
Can we extend the built-in Ribbon options using Office js manifests?
I'm writing an OfficeJs addin for Excel that provides an additional Copy action for cells. Ideally, I'd like to add a custom menu for it on the Home > Clipboard > Copy dropdown, below "Copy&...
0
votes
1
answer
435
views
Why can't I get a result from the Office.context.mailbox.item.to.getAsync function?
Writing an Outlook Add-In and trying to get the recipients from message compose mode using the Office Javascript API. I can see successful results in the console logs but I only get undefined as a ...
0
votes
1
answer
210
views
Office-Js - How do I modify the manifest to add custom tab or custom button?
I am the newer of office web addin, i create my first office web addin by using "Excel Web Add-in" template which is on visual studio 2022 and the i follow the manifest file summary tutial ...
1
vote
0
answers
50
views
how to get access token in word document 365 in desktop view
manifast.xml
<WebApplicationInfo>
<Id>xxxxxx-xxxx-xxxx-xxxx</Id>
<Resource>api://localhost:4200/xxxxxx-xxxx-xxxx-xxxx</Resource>
<Scopes>
&...
0
votes
0
answers
75
views
Do we need to call `load` before reading `ooxml` of an API object?
The following code produces an error in linting, while still working correctly:
function getSelectionOoxml(): Promise<string> {
return new Promise((resolve) => {
return Word.run(async (...
2
votes
1
answer
63
views
PowerPoint JS API: connect 2 rectangles
I can't find any reference on how to connect 2 shapes in PowerPoint using their JS API for Office Add-in (using latest version as of 03.2024).
Here is my simple code:
export async function run() {
...
2
votes
0
answers
163
views
Office JS Excel: Event Handlers Slow to fire
I'm currently in the process of migrating functionality within excel from VBA event handlers, notably the use of worksheet change handlers, to OfficeJS and I'm having some odd performance issues which ...
0
votes
0
answers
193
views
Export a style to JSON
Is there a way to export a style to JSON? I see there is importStylesFromJson, but nothing for exporting styles.
Alternately, where can I find the full description of the JSON format supported by ...
1
vote
0
answers
125
views
Get position of image on the page
Is there a way to get the X/Y position of an inline picture relative to page bounds? I'm open to OOXML solutions too as the API doesn't seem to have anything for this.
I have managed to figure out the ...
0
votes
1
answer
84
views
Word Office Javascript API - Format first x chars
I need to change the size of the first X characters for my add-in. To do this, I should either be able to go through the individual characters or format the first X characters in one go. But I can't ...
0
votes
2
answers
201
views
Is it possible to retrieve the body of the email being replied to in a conversation outlook add-in?
Is it possible to retrieve the body of the email being replied to in a conversation even we have multiple emails in conversation.
I am attempting to retrieve the email body in compose mode for an ...
0
votes
1
answer
79
views
how to navigate page in outlook addins office 365
i am trying to navigate page to next page in outlook addin . i was also install react router dom. but its not working in outlook addins.what is solution of navigate page to new page like login , ...
0
votes
0
answers
229
views
How to Insert/add the chart in excel using JS?
I have added the below snippet to add the table and chart axis in excel. While clicking the Export to Excel button , no excel is downloaded in the browser. I need to draw a chart with the table data. ...
-1
votes
1
answer
52
views
Excel Addin transparent Dialog
I am implementing a loading dialog for Excel addin to let user know its in process, need to wait.
I have tried
Office.context.ui.displayDialogAsync("https://localhost:3000/#/dialog/loading",{...
0
votes
1
answer
144
views
Is there any way to get files Id in OfficeJS
I am using Graph API's recently and there is an API get files content by id. Is there any way to get document id so I can call Graph API and get its content ?
Excel.run(function(context) {
var ...
0
votes
1
answer
145
views
Office.JS Word API - Can't update property fields from ExecuteFunction in manifest
I have an Office web add-in for Word that needs to fetch custom properties from an API and store them under document.properties.customProperties the user will then be able to insert them into their ...
0
votes
1
answer
69
views
Word Office Javascript API Perfomance
I would like to develop a Word Addinn. With which I can work my way through the paragraphs of a Word document and customize the formatting of the document. I would like to color the vowels of words in ...
0
votes
1
answer
107
views
Uninstall yeoman office js addin in mac
I have an office js addin that is side loaded while I am developing. I have tried to use the https://learn.microsoft.com/en-us/office/dev/add-ins/testing/clear-cache to remove this in my mac but I ...
0
votes
1
answer
108
views
why VSTO Outlook Add-in and Office JS add-in conversationId is not same?
why VSTO Outlook Add-in and Office JS add-in conversationId is not same how can I get same in VSTO like in javascript
but javascript conversationId is different then VSTO
using JavaScript mail ...
0
votes
1
answer
77
views
OfficeJS with Azure AD
Currently I have an OfficeJS with Angular setup and it works great. However I wanted to structure it in a way that it could call some of our existing API's. I then tried to create a connection with ...
2
votes
0
answers
68
views
PowerPoint API getSelectedDataAsync with coersion type SlideRange fails on new line character in slide title
This is more of a bug report for the PowerPoint API. (Office add-in)
When using getSelectedDataAsync with coersiontype SlideRange the request fails if there is a new line (\n) character in the title ...
0
votes
2
answers
73
views
Commands-Only Microsoft Word Add In
I want to make a Microsoft Word add in that only introduces XML commands in the manifest; that is, it does not need a task pane. Is this possible? Are there any examples of what that might look like, ...
1
vote
1
answer
110
views
node module error when creating outlook web add-in
When I created react outlook add-in and start outlook add-in I got this error in webpack
ERROR in ./node_modules/@fluentui/react-icons/lib/utils/fonts/FluentSystemIcons-Resizable.woff2 1:4
Module ...
0
votes
0
answers
34
views
Copying Specific Columns to Excel while Filtering Blank Rows
I manage the attendance system of cadets for a military function. Within this, it is required when they have an excused absence to have a valid reason verified by leadership to ensure they meet ...
0
votes
1
answer
147
views
how to open taskpane when I click on button?
manifest.xml
<Control xsi:type="Button" id="SmartFieldButton">
<Label resid="SmartFieldButton.Label" />
...
0
votes
1
answer
461
views
Accept/Reject Tracked Changes in word document using office js api
I am using office js to track the user changes in the document:
async function setChangeTrackingMode() {
// Sets the change tracking mode.
await Word.run(async (context) => {
context....
0
votes
1
answer
126
views
OUTLOOK: MAC: Add-in using MSAL/GraphAPI, Refresh token for ssoSilent fails
Have an Outlook add-in that uses the dialog API to prompt the user via MSAL-JS for Graph API access. It works in Safari on Mac, Edge on Mac, Chrome on Mac, FF on Mac, and 100% from any Windows client ...
0
votes
1
answer
139
views
How to Debug/troubleshoot outlook addin for mobile
I have recently added MobileFormFactor in manifest.xml. If we load a custom addin in outlook client, question is how can we debug this addin when using android mobile outlook client in windows
I tried ...
0
votes
1
answer
312
views
How can I add multiple requirements sets to the manifest.xml file for an Office add-in?
I have an Office add-in that works for Word, Excel and PowerPoint, but I want it to only be available for Office 2021 onwards (Windows Desktop)
I found that it is possible using Requirement Sets, but ...
0
votes
1
answer
272
views
Copy PowerPoint shapes using office js to a new slide
I'm trying to do something which seems simple using office js but I can't get it to work. I am reading a pptx file and inserting the first slide into my presentation with the following:
//insert new ...
0
votes
1
answer
432
views
Issue: Long Wait for Custom Outlook Add-In to Show Up for New Group Members in Microsoft 365
We have deployed a custom Outlook Add-in within our Microsoft 365 environment, targeting a specific Security Group. Our objective is to ensure that only members of this group have access to the add-in....
0
votes
1
answer
573
views
What is the best approach to deploy an outlook add-in?
I have built an outlook add-in which extracts the details of a mail like sender, subject, the body of the mail, etc and shares it to another messaging app. It is similar to "share to teams" ...
0
votes
1
answer
82
views
Packaging JS based and VBA based PowerPoint addin into one
Can two independent office-js based PowerPoint addin and VBA based PowerPoint addin are packaged into one?
From Office-JS & VBA Addin How to mix together, I understand two office-js based addin ...
3
votes
3
answers
2k
views
Outlook add on sideloading fails because of unauthorized access
As title indicates, my add on is failing to sideload. I am trying to follow the official tutorial of microsoft on how to build your first outlook, developing a taskpane: https://learn.microsoft.com/en-...
0
votes
1
answer
259
views
Access Token not working of tenant of office 365
I am working in add-in that's why i am using office dialog to login
var url = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=myclientid&response_type=token&...
0
votes
1
answer
61
views
How to make office-js MS Word Add-ins to work with Connected experiences disabled?
We have at team, who needs to have Connected experiences in Office disabled.
How can I get a office-js MS Word Add-in with a backend to work with Connected experiences disabled?
0
votes
1
answer
541
views
How to use the Word JS API to search for text with tracked changes enabled
I have a Microsoft Word document with tracked changes enabled, which I am trying to search for a string of text. I want to search for what the text would be if tracked changes were accepted. I do this ...
0
votes
1
answer
131
views
Is there a way from the Office/Outlook Js API to determine if user has selected to edit the selected event, all events, or this event and all after?
I have a Outlook Web Add-in that I am developing to be used for Outlook on the Web, but there is a scenario that I need to handle. When a user creates a recurring event then saves it or sends it, they ...
0
votes
1
answer
77
views
Outlook Add-in to parse emails and populate Django Database
I'm trying to find the best way to get some sort of a button in Outlook (add-in) that will perform some functions on my django project - like parsing the email and search for a specific stirngs in it ...
0
votes
1
answer
162
views
Outlook addin Smart alerts not working in outlook legacy
I developed a outlook addin that has the onMessageSend launchevent, implemented using smart alerts.
It works fine on outlook modernUI but in outlook legacy version in windows, it does not. It shows &...