office-addins

How to add a new connection using Office JS Excel Add-In to retrieve and show data from an OData Service?

和自甴很熟 提交于 2020-06-29 03:47:13
问题 We use the following method to add a connection to our OData service in VSTO Excel Add-In. Now we are planning to rewrite the add-ins using Office JS. What is the similar approach in Office JS Excel Add-In to load data from the OData service? string connectionString = "DATAFEED;Data Source=http://localhost:8443/OData/ODataService.svc/Products?$filter=Company_Code eq 'TY';Namespaces to Include=*;Max Received Message Size=4398046511104;Integrated Security=Basic;User ID=testuser;Password=123

Outlook add-in : Get shared mailbox ItemAttachment using EWS

丶灬走出姿态 提交于 2020-06-27 04:09:09
问题 Our outlook add-in works in most scenarios on a shared Mailbox, except when the attachment in an email is of type " Office.MailboxEnums.AttachmentType.Item " e.g " .msg " file. Environment is Outlook web and desktop. We mostly get all attachment content via REST, as they are returned as base-64, but with " AttachmentType.Item " the body is email body and not a base-64. In this case, we make a call to EWS to download that attachment, process the body and return as byte[]; The problem we are

How to use Preview version of office-js Excel API?

≡放荡痞女 提交于 2020-06-18 02:50:15
问题 I want to use Preview features of office-js Excel API (specifically DataValidation). This page says that I should use Beta version of the library and they provide a link but I have no idea what to do with it. What I did so far: I have added the js path to index.html . I copied types from ts file to file in node_modules . But it doesn't seem like a good solution since whenever I update @types/office-js I would also have to copy source again... 回答1: in order to use preview Api you only need:

Pinned Outlook web addin: ItemChanged event stops arriving

微笑、不失礼 提交于 2020-06-13 09:10:49
问题 We have a user for whom our pinned addin stops receiving ItemChanged event after a while (Outlook desktop only). We can always reproduce this situation in Outlook and there are no errors in the JavaScript log. What could be happening? Outlook stops firing events? Office.js loosing our event handler? How can we debug this? We can attach to the process using the Edge Dev tool. Your help would be greatly appreciated. 回答1: Thanks for reporting this issue regarding the ItemChanged Event. This is a

Microsoft Office VSTO addin: How to access ribbon xml controls from ThisAddIn class

梦想与她 提交于 2020-04-29 03:49:28
问题 In my VS2019 VSTO project for WORD AddIn , I have created button in a tab by using Ribbon XML as follows. And VS2019 auto-generated the ThisAddIn.cs class shown below. Question : How can I programmatically access the button control btnButton of Ribbon XML from ThisAddIn.cs class? Remark : There are some officials such as this one that shows how to do it for a Ribbon Designer . But, I need to do it for Ribbon XML . Ribbon1.XML : <ribbon> <tabs> <tab id="TabID" label="TEST"> <group id="MyGroup"

File types (mime types) issue in Outlook web addin using Fabric UI

霸气de小男生 提交于 2020-03-21 06:40:56
问题 I am working on an Outlook Web Addin using Fabric UI framework. Im using Fabric UI Core without React or AngularJS. I am facing an issue in getting File Types (MIME types) icons. Whatever references I found online for File types in Fabric UI are for React framework. Is there a way to get file types in Fabric UI with plain Javascript without React? I found the following links where file types are available: https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16/csv.svg https:/

File types (mime types) issue in Outlook web addin using Fabric UI

余生长醉 提交于 2020-03-21 06:40:47
问题 I am working on an Outlook Web Addin using Fabric UI framework. Im using Fabric UI Core without React or AngularJS. I am facing an issue in getting File Types (MIME types) icons. Whatever references I found online for File types in Fabric UI are for React framework. Is there a way to get file types in Fabric UI with plain Javascript without React? I found the following links where file types are available: https://spoprod-a.akamaihd.net/files/fabric/assets/item-types/16/csv.svg https:/

Is there a way to use Excel.run() inside Custom Function?

北战南征 提交于 2020-03-05 06:09:11
问题 As a result of my Custom Function I want to fill few worksheet cells, taking cell that the function was invoked as a base cell. I have to return some complex data, that wouldn't fit in one cell. So the question is: is there a way to use Excel.run() inside the Custom Function? Or is there a way to return more complex data (objects, array of objects) as the return value of Custom Function? This is simple example of what I'm trying to do, but it doesn't work: /** * Adds two numbers. *

makeEwsRequestAsync not returning callback on MacOS Outlook2016

蹲街弑〆低调 提交于 2020-03-03 16:41:10
问题 I'm using makeEwsRequestAsync to get email "Body", "Subject", "MimeContent" . But in case of MacOS Outlook2016 when the email size is more than 1MB the callback method is never called after the call is made to makeEwsRequestAsync() . In case of email having size less than 1MB the callback is called with proper result. I know in case of more than 1MB email size there will be an error with the message Response exceeds 1 MB size limit. Please modify your EWS request Also, the same code is