office-js

Open directly a web page from a button in Ribbon in a browser outside Excel?

泄露秘密 提交于 2021-02-08 09:36:26
问题 We have several Excel add-ins in AppSource. At the moment, we have a button in Ribbon for Documentation , clicking on the button opens the documentation webpage in a taskpane in Excel. We feel that as the taskpane is small, people are unlikely to read documentation over there. So a better way would be to open the documentation webpage in a browser outside Excel. We notice that in Script Lab, clicking on the Reference Docs opens a small window which contains open link in new window . Then, we

Two open taskpanes side by side

蓝咒 提交于 2021-02-08 09:17:58
问题 I am making an Office add-in which has two ribbon buttons. Each button is linked to a different TaskpaneId, and clicking on each button opens a different taskpane: <bt:Urls> <bt:Url id="Contoso.Taskpane1.Url" DefaultValue="https://localhost:3000/addin/page1" /> <bt:Url id="Contoso.Taskpane2.Url" DefaultValue="https://localhost:3000/addin/page2" /> </bt:Urls> It seems that I have seen some Office Add-ins where two task panes can be shown side by side simultaneously (I forgot which exactly the

Outlook WEB Add-in execution of getAccessToken returns status code 302

送分小仙女□ 提交于 2021-02-08 08:22:30
问题 I strictly follow this article to build an Outlook WEB Add-in, but when I execute getAccessToken I receive 302: Missing grant for this add-in. with name: Preauthorization missing Why is that? My Add-in is well registered in the portal. Do I need to do anything else? What is the grant type for this request and where should I put it in? $("#getAccessTokenBtn").click(function () { Office.context.auth.getAccessTokenAsync(function (result) { if ("succeeded" === result.status) { // Use this token

Outlook WEB Add-in execution of getAccessToken returns status code 302

…衆ロ難τιáo~ 提交于 2021-02-08 08:21:30
问题 I strictly follow this article to build an Outlook WEB Add-in, but when I execute getAccessToken I receive 302: Missing grant for this add-in. with name: Preauthorization missing Why is that? My Add-in is well registered in the portal. Do I need to do anything else? What is the grant type for this request and where should I put it in? $("#getAccessTokenBtn").click(function () { Office.context.auth.getAccessTokenAsync(function (result) { if ("succeeded" === result.status) { // Use this token

Office-JS & VBA Addin How to mix together

*爱你&永不变心* 提交于 2021-02-08 07:33:51
问题 Is it possible to place OfficeJS command button to Custom VBA Addin panel built like .xlam file? * I still have hope to mix VBA and OfficeJS 回答1: This is untested, but I believe something along these lines will do the job: Use the CustomXMLPart.dataNodeReplaced event: function addNodeReplacedEvent() { Office.context.document.customXmlParts.getByIdAsync("vbaJSBridge", function (result) { var xmlPart = result.value; xmlPart.addHandlerAsync(Office.EventType.DataNodeReplaced, function (eventArgs)

Invalid Excel Binding object

為{幸葍}努か 提交于 2021-02-08 03:06:58
问题 What is the proper way to delete an invalid binding in ExcelJS? If a binding exists on a Excel table and the table is deleted the binding becomes invalid. One can load the bindings again (on a button click for example) and the invalid binding will be loaded: context.workbook.bindings.load('id'); ... However, any attempt to do anything with the binding (delete it) causes an InvalidBinding exception. There appears to be no way to tell if a binding is valid or not (it only has id and type

Invalid Excel Binding object

时光怂恿深爱的人放手 提交于 2021-02-08 03:01:47
问题 What is the proper way to delete an invalid binding in ExcelJS? If a binding exists on a Excel table and the table is deleted the binding becomes invalid. One can load the bindings again (on a button click for example) and the invalid binding will be loaded: context.workbook.bindings.load('id'); ... However, any attempt to do anything with the binding (delete it) causes an InvalidBinding exception. There appears to be no way to tell if a binding is valid or not (it only has id and type

Add-ins are disabled while creating a meeting in office 365 group calendar in outlook 2016

一世执手 提交于 2021-02-07 19:14:36
问题 I am following this Article to create a new meeting in Office 365 group calendar using Outlook 2016(on Windows 10), But all the add-ins are disabled in outlook 2016 native when using group calendar. The add-ins works fine in web outlook for group calendar and for regular user calendar in outlook 2016 native as well. Our applications helps to create structured agenda for a meeting but since the add-in is disabled we cant use the app in group calendar using Outlook 2016 native. Here is the

How to replace text with a MS Word web add-in by preserving the formatting?

╄→尐↘猪︶ㄣ 提交于 2021-02-07 19:13:48
问题 I'm working on a simple grammar correction web add-in for MS Word. Basically, I want to get the selected text, make minimal changes and update the document with the corrected text. Currently, if I use 'text' as the coercion type, I lose formatting. If there is a table or image in the selected text, they are also gone! As I understand from the investigation I've been doing so far, openxml is the way to go. But I couldn't find any useful example on the web. How can I manipulate text by

How to replace text with a MS Word web add-in by preserving the formatting?

你说的曾经没有我的故事 提交于 2021-02-07 19:09:47
问题 I'm working on a simple grammar correction web add-in for MS Word. Basically, I want to get the selected text, make minimal changes and update the document with the corrected text. Currently, if I use 'text' as the coercion type, I lose formatting. If there is a table or image in the selected text, they are also gone! As I understand from the investigation I've been doing so far, openxml is the way to go. But I couldn't find any useful example on the web. How can I manipulate text by