909 questions with JavaScript API tags

Sort by: Updated
0 answers

Distribute Excel Add-In only for desktop Users out of the organization

I would like to know the options to distribute an Excel add-in only for desktop users (out of the organization). Is it possible? The only method available to distribute publicly is the AppSource, but I have to make the add-in fully functional on…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-07-23T17:00:31.433+00:00
Leonardo Santos 1 Reputation point
0 answers

ASP Email Script Failing

Im quite new to scripting, i have a support team that has a requirement for an app theyre developing and they need to send emails using the script they provided. Now they asked for a mailbo but i recommended simply relaying since we have an email…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,280 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,357 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,748 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-07-19T05:17:42.317+00:00
Admin Travis 1 Reputation point
commented 2021-07-23T07:15:48.36+00:00
JasonPan - MSFT 4,626 Reputation points Microsoft Vendor
1 answer

How to make global changes to all open documents

I sometimes have 20 or more documents what require the same changes, such as dollar amounts or dates, etc. On the older versions of Word for Mac, you use to be able to make global changes to "All Open Documents" but I can't believe they took…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
Word Management
Word Management
Word: A family of Microsoft word processing software products for creating web, email, and print documents.Management: The act or process of organizing, handling, directing or controlling something.
903 questions
asked 2021-07-16T20:24:29.887+00:00
Carolyn Antonio 1 Reputation point
commented 2021-07-22T06:27:07.72+00:00
Viki Ji_MSFT 4,431 Reputation points
1 answer One of the answers was accepted by the question author.

Collapse pivot table fields via excel JS api

I have an addin using the excel JS api that generates a pivot table. I wish to collapse the fields of this pivot table. This seems to be possible in the VBA api via pf.ShowDetail and DrillTo, but these functions/fields do not seem to be present in the JS…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 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.
3,631 questions
asked 2021-07-16T19:33:26.14+00:00
Paul 31 Reputation points
accepted 2021-07-20T15:37:25.82+00:00
Paul 31 Reputation points
0 answers

Authenticating a Web Application Using JSON Web Token

Suppose I am not using any front-end or back-end framework to generate any markups on the front-end of my web app but I am using a Web API for authentication purposes, how should I use JWT for authentication purposes? I have done some online searches on…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-07-09T21:34:34.783+00:00
Progmaster 1 Reputation point
0 answers

Setting the focus to a dialog invoked by a WSH script

I invoke a dialog to select some files as follows: Set fso = CreateObject("Scripting.FileSystemObject") Set objWord = CreateObject("Word.Application") Set WshShell =…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-07-05T21:48:21.57+00:00
Kevin Lossner 21 Reputation points
0 answers

MS Project office addin not working

Hello everyone, I am trying to create a MS project addin, Following this link, I created a sample addin for Project using yeoman and import the addin, but addin is stuck at "Please sideload your add-in to see app body". It seems Office does…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-07-03T10:54:01.693+00:00
Sud 1 Reputation point
1 answer

Excel on the web Add-in using ASP.Net in server-side with CORS problems

I developed an Excel Add-in using JavaScript API (office.js). Then, I'm using an Asp.Net MVC at the server-side. This works fine on excel desktop, but custom functions don't work in Excel on the web. When I inspect the task pane it shows these errors: …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,357 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-06-28T14:32:39.713+00:00
Leonardo Santos 1 Reputation point
answered 2021-06-29T03:20:58.967+00:00
Yijing Sun-MSFT 7,071 Reputation points
0 answers

Word.Range: How can I set A Word range to precise Start and End positions?

Hi, I am porting a VSTO extension to the new office add in technology (I have many users who would love using it on Mac 😊). The goal is to color parts of words (according to French pronunciation) to make it easier to read for dyslexic readers. …

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-06-27T13:28:04.543+00:00
PAE 1 Reputation point
3 answers One of the answers was accepted by the question author.

Word Addin high CPU and force close after storing customProperties.

In my Word Addin I need to store relations between keys, values and content control ids. Currently I store these relations in document.properties.customProperties. I use the key as the customProperty key and add the value and ids as stringified JSON to…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 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.
3,631 questions
asked 2021-05-18T13:34:59.91+00:00
lars wissler 26 Reputation points
answered 2021-06-25T06:58:32.85+00:00
combachi 1 Reputation point
1 answer One of the answers was accepted by the question author.

How I show a nested DataView?

Hello, i watch and saw many examples to scroll a nested gridview, I have an example of one, but doesn't work, I can't scroll it, im doing something wrong? C#: protected void Page_Load(object sender, EventArgs e) { …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,357 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,457 questions
asked 2021-06-14T20:22:59.23+00:00
EvansGxz 121 Reputation points
accepted 2021-06-24T14:11:45.22+00:00
EvansGxz 121 Reputation points
0 answers

Outlook ui-less get bootstrap token

hi There, I am trying to run a ui-less Outlook web add-on but when i am running this on Windows the command : var ssoToken = await OfficeRuntime.auth.getAccessToken({}); is restricted to run on Outlook for windows. Is there an option to…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-06-24T10:49:48.01+00:00
Vincent Boots 1 Reputation point
0 answers

Excel addin cache in production environment

Hello to everyone, Me and my team encountered a problem in internal production environment, recently we changed our infrastructure: addin were served on root / and now is served on /excel our documentation was served on /docs and now is…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-06-23T10:32:10.463+00:00
Andrea Manna 1 Reputation point
0 answers

How to programmatically export/print to XPS - WordAPI

Is it possible to export/print to XPS programmatically in an OfficeJS addin? Looking at the docs I see only 3 FileType enum members: https://learn.microsoft.com/en-us/javascript/api/office/office.filetype?view=word-js-1.3 Is there a reason other…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-06-22T17:22:47.5+00:00
Raluca Minea 1 Reputation point
0 answers

Outlook - automatically open add-in side pane when object opened

To provide our in-house userbase with better expirience we would like to open our Addin when new meeting is being composed. This is importnant feature, missing in Outlook. The feature was already requested and should be in backlog …

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 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.
3,631 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
4,980 questions
asked 2021-06-18T12:21:05.973+00:00
Štěpán Martínek 1 Reputation point
1 answer

Excel v16.49 add-in combatibility with Excel v13

I'm developing an Excel add-in for a client. I bought an Excel (v16.49) license for doing this, and created a developer account. But they are currently stuck on Excel v13 and can't seem to sign in with the test account I created for them in the Microsoft…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-06-09T09:22:20.297+00:00
Elias 1 Reputation point
answered 2021-06-18T00:15:30.62+00:00
Alison McKay 81 Reputation points Microsoft Employee
0 answers

onChange trigger only when users do the change

I have a trigger that runs a function whenever a cell value is changed in my worksheet (onChanged trigger). However I only want that trigger to run when the change is made by user in the UI, no when some other scrips in my add-in change the value of some…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 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.
3,631 questions
asked 2021-06-16T16:34:01.263+00:00
Do, Tuan 1 Reputation point
0 answers

Add items dynamically to a context menu using office js in Excel?

Is it possible to add items to a Context Menu at runtime using office js in Excel? I can only seem to be able to do it through the manifest. I found this question on StackOverflow from not too long ago, but couldn't find any related questions in this…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 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.
3,631 questions
asked 2021-06-16T16:30:19.887+00:00
Jayme Bandeira 26 Reputation points
1 answer

Create new workbook but manifest can't automatic load my application to ribbon

Story : I have my application running with officejs. I create manifest link to my application. and I have some button on my ribbon. When user create new workbook. My manifest add-ins will display but user need to click something on my ribbon for first…

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 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.
3,631 questions
asked 2021-06-11T06:32:09.933+00:00
Supho, Thanonphat 6 Reputation points
answered 2021-06-15T00:59:52.483+00:00
Alison McKay 81 Reputation points Microsoft Employee
0 answers

Excel Addin of Spreadsheet Compare doesn't work for 21vianet Office 365

Excel Addin of Spreadsheet Compare doesn't work for 21vianet Office 365(China O365), please help to confirm whether support it.

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
909 questions
asked 2021-06-13T05:55:26.6+00:00
Jimmy Yang 1 Reputation point