office-js

Office.Settings not retrievable in Excel Online when created and set in Excel Desktop

纵然是瞬间 提交于 2021-01-28 01:52:32
问题 According to the API docs, the Office.Settings objects are saved per add-in and per document. That is, they are available only to the add-in that created them, and only from the document in which they are saved. I'm a bit confused regarding the Office.Settings interface. I've created a gist in the ScriptLab Add-in where I set 2 setting objects (queries and queryIDs) and then retrieve them (log them to console). Gist: https://gist.github.com/VivianVenter/e5489628384f96f2d3bf9a50aace8728 If I

Word Addin/OfficeJS - Detect if Cursor is on Chart Element

泄露秘密 提交于 2021-01-27 19:50:31
问题 I want to be able to check if the document cursor is inside of a Chart element within the MS Word API. Right now I have an application that inserts text, but when I try to insert said text into the title of the Chart, it deletes the chart and replaces it with the Content Control I'm inserting. Instead of deleting the chart, I want to check if the cursor is inside of the Chart via context. If I'm inside of the Chart in any way, be able to throw a warning message to the user and escape. Is

Outlook Add-in file download

时光怂恿深爱的人放手 提交于 2021-01-27 06:56:01
问题 What I'm trying to do Download a file from an Office Outlook add-in inside Outlook application in MacOS X "El Capitan" ( not the web portal ) How I tried to do it I have tried with: Blob data URL btoa - atob A tag with download variable internal window.open ( in a allowed domain ) Applying Office Dev tutorial Office-Add-in-JavaScript-FileDownload ( with a modification to make it work in outlook due to OfficeExtension class) But result is always the same: or it shows the file (i.e. images or

Office.context.mailbox.item.body.getAsync() method does not work in outlook mac 2016

做~自己de王妃 提交于 2021-01-27 04:41:19
问题 In office 365 outlook add-in, Office.context.mailbox.item.body.getAsync() method does not work in outlook Mac . But it works fine in safari and chrome . office js reference is "https://appsforoffice.microsoft.com/lib/1/hosted/office.js" here is the code of add-in read app var _item = Office.context.mailbox.item; var body = _item.body; // Get the body asynchronous as text body.getAsync(Office.CoercionType.Text, function (asyncResult) { if (asyncResult.status !== Office.AsyncResultStatus

What is the office setting limitation for Excel Add in

纵然是瞬间 提交于 2021-01-24 09:24:06
问题 I am using this OfficeJs API to save metadata associated with excel add in app, and I am wondering how big data the setting can support in Excel add in, we notice when the setting get to a few MB, it doesn't get saved. Office.context.document.settings.set('mySetting', 'mySetting value'); 回答1: Excel JS ever had a 2 MB limitation for the settings for each add-in, but this limitation was removed since office 2016 due to customer requests. therefore, right now, there should not have a limit for

How to copy url to windows clipboard in office add-in?

陌路散爱 提交于 2021-01-07 01:06:07
问题 I am building an Office add-in to copy the URL of the opened Office document to the Windows clipboard. But it doesn't work. Please let me know what my code is wrong. Here's my FunctionFile.html for UI-less Office add-in. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!--During development turn off caching--> <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http

How to copy url to windows clipboard in office add-in?

亡梦爱人 提交于 2021-01-07 01:06:01
问题 I am building an Office add-in to copy the URL of the opened Office document to the Windows clipboard. But it doesn't work. Please let me know what my code is wrong. Here's my FunctionFile.html for UI-less Office add-in. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!--During development turn off caching--> <meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv="expires" content="0" /> <meta http

Office.js | implement single sign in excel add-in

非 Y 不嫁゛ 提交于 2021-01-04 06:43:12
问题 I am using Office.js, javascript and react to create excel add-ins. Wants to implement single sign-in flow using ribbon button. Once user successfully sign in then only wants to show task pane to user. I have configured add-in using shared runtime(manifest.xml) I have added Login command in ribbon and executing action from manifest file by using below code. Below is the Action from manifest file. 'btnlogin' function gets executed on click of login icon from ribbon <Action xsi:type=

Office.js | implement single sign in excel add-in

懵懂的女人 提交于 2021-01-04 06:42:27
问题 I am using Office.js, javascript and react to create excel add-ins. Wants to implement single sign-in flow using ribbon button. Once user successfully sign in then only wants to show task pane to user. I have configured add-in using shared runtime(manifest.xml) I have added Login command in ribbon and executing action from manifest file by using below code. Below is the Action from manifest file. 'btnlogin' function gets executed on click of login icon from ribbon <Action xsi:type=

Office.js | implement single sign in excel add-in

余生颓废 提交于 2021-01-04 06:42:27
问题 I am using Office.js, javascript and react to create excel add-ins. Wants to implement single sign-in flow using ribbon button. Once user successfully sign in then only wants to show task pane to user. I have configured add-in using shared runtime(manifest.xml) I have added Login command in ribbon and executing action from manifest file by using below code. Below is the Action from manifest file. 'btnlogin' function gets executed on click of login icon from ribbon <Action xsi:type=