office-addins

Why doesn’t the form not POST in Excel 2016 for Mac?

烂漫一生 提交于 2019-11-28 10:31:03
问题 We are testing an add-in for Excel that has a form that is POSTed to https://httpbin.org/anything. The form will not POST in Excel 2016 version 15.39 (171010) for Mac (High Sierra ver 10.13.1). Here are the HTML form’s essentials: <script type="text/javascript"> //submit form $("#testForm").submit(); </script> </head> <body> <form method="POST" id="testForm" action="https://httpbin.org/anything" accept-charset="UTF-8" target="_blank"> <div> <input type='hidden' name='mergeDataFormat' value=

Access Ribbon Elements Programmatically in XML Ribbon

梦想与她 提交于 2019-11-28 07:46:10
问题 This seems to have been asked several times on here with no real answer: Accessing Ribbon Controls Programatically in an XML Ribbon Office Ribbon: How to access a control when the ribbon was created using XML If a ribbon is created using ribbon xml, as far as I can tell, there is no programmatic exposure of the components defined in that xml. The only obvious limited way to change the state of these components is to use something like an onAction, getContent, getImage event, and the

How to get recurrence data from JavaScript API in office365

会有一股神秘感。 提交于 2019-11-27 16:27:24
I need to fetch recurrence data for appointments like Repeat, From, To fields. In addition, I also need to get daily, weekly, or monthly pattern details for my Outlook office Add-in while it is in compose mode. In an Outlook web add-in when something is not available directly from Office.js library you can try to get access to those data using Exchange Web Services. Fortunately, Office.js provides two ways to access EWS. You can request directly the EWS with a SOAP request from your client app. See method makeEwsRequestAsync in Office.context.mailbox You can get an EWS token, send it to your

Detecting text changes in Word 2016 from VSTO add-in

心已入冬 提交于 2019-11-27 12:52:31
This question is very closely related to How to get the “KeyPress” event from a Word 2010 Addin (developed in C#)? (and in fact includes the sample code from the answer to that question), but this is specifically about developing in Visual Studio (Professional) 2015 for Word 2016 running in Windows 10. I’m trying to detect when text changes in a Word document from a VSTO add-in. I understand from How to get the “KeyPress” event from a Word 2010 Addin (developed in C#)? (Nov 14, 2011) Capturing keydown event of MS Word using C# (Oct 21, 2012) How to raise an event on MS word Keypress (Oct 24,

Cleaning office add-in cache

[亡魂溺海] 提交于 2019-11-27 07:06:17
问题 I have taken over a previously written office add-in with yeoman. I have been changing settings and else but after the initial install to see how far it has gone I believe my outlook client has stored some kind of cache. When I try to install the updated version it still holds the logos and settings for the previous version but when install it on a system which did not have a previous version of it its all good. Any suggestions help. I have tried deleting my local profile file and recreate it

How to get recurrence data from JavaScript API in office365

久未见 提交于 2019-11-26 18:39:19
问题 I need to fetch recurrence data for appointments like Repeat, From, To fields. In addition, I also need to get daily, weekly, or monthly pattern details for my Outlook office Add-in while it is in compose mode. 回答1: In an Outlook web add-in when something is not available directly from Office.js library you can try to get access to those data using Exchange Web Services. Fortunately, Office.js provides two ways to access EWS. You can request directly the EWS with a SOAP request from your