office-js

Detect when item is changed in Outlook Web Add-in

拟墨画扇 提交于 2019-12-05 23:03:56
I would like to update the content of my Outlook Web Add-in when Calendar event data is changed. Is there any possibility to catch kind of ItemChanged event in the web add-ins? I have found some projects with OnSend , but trying that way does not work, and there is only that event possible to catch. Currently the feature you are specifying is not a part of the product. However, we are actively investigating what types of events would be beneficial for the platform. We track Outlook add-in feature requests on our user-voice page . Please add your request there. Feature requests on user-voice

OneNote Add in: Getting HTML content

依然范特西╮ 提交于 2019-12-05 21:17:09
In the example , code is provided to get RichText. It is able to get the plain text content of the page, but I cannot seem to get it to return the HTML formatted content of the page. For example: Header: A B should be: <p>Header:</p> <ul> <li>A</li> <li>B</li> </ul> However, the example code uses richText/text and only returns Header: . Is it possible to do something like richText/HTML and get the HTML shown above? (Note: I want to use the add-in only, not the OneNote REST API.) Thanks! Code snippet from documentation: OneNote.run(function (context) { // Get the collection of pageContent items

How to insert an image into Word from a URL

烂漫一生 提交于 2019-12-05 21:12:47
I am currently working on an Office.js add in for Word and I am trying to insert an image from a given Url. I was reviewing the Office.js documentation which is located at : InlinePicture object (JavaScript API for Word) I see that they may have a built in functionality of getting the base64 representation from a img url by "getBase64ImageSrc()" . The documentation on the dev office website is either misleading or incorrect. Looking to see if anyone has built a word-addin that inserts an image from a url using "getBase64ImageSrc()" ? Or am I looking in the wrong direction. Juan Balmori Need to

PowerPoint command like insert slide or apply theme equivalent on Office javascript API

为君一笑 提交于 2019-12-05 18:49:36
I'm developing a PowerPoint add-in and in future, it will be publish in Office Store. But it is VSTO project (C# and winforms) which could not be publish. Based on my search, it must be Office Web Add-in project (manifest xml and web pages). I'm trying to convert my development from VSTO to Office Web Add-in but some of functionalities like open presentation, insert slide and apply theme aren't found on the Office.js. Is there equivalent functions in Office.js? or other way? Hopefully someone share their ideas about it. Thanks in Advance. This is currently no way to execute these actions

Outlook Add-in command button disabled when composing

ぃ、小莉子 提交于 2019-12-05 18:32:59
My add-in has a MessageComposeCommandSurface ExtensionPoint that adds a button to the ribbon when the user is composing a message. I expected the button to always be enabled when it is visible (e.g. when the user is composing a new message or replying to an existing one), but sometimes it is greyed out/disabled and I'm not sure why. Does anyone know the exact circumstances for when an add-in ribbon button is greyed out/disabled? Try to disable some COM add-in and then enable it again. In my case it helped to make buttons active. 来源: https://stackoverflow.com/questions/46697093/outlook-add-in

Outlook API 1.3 version not showing on Outlook Desktop Professional Plus 2016

[亡魂溺海] 提交于 2019-12-05 10:29:11
On this page https://github.com/OfficeDev/office-js-docs/blob/master/reference/outlook/tutorial-api-requirement-sets.md it is specified that both Outlook 2016 (MSI) for Windows and Outlook 2013 for Windows support Outlook API up to Version 1.4, but when we try to increase the minimal version in the manifest from 1.1 to 1.3, the addin works fine on web but does not show on both desktop versions. Currently I am working on Outlook Professional Plus 2016 with build number 16.0.4312.100, 64bit on Windows 10. I am trying a simple addin generated by yeoman office-generator, with only change is the

Office add-in is not activated on Outlook if open .msg template

自古美人都是妖i 提交于 2019-12-05 10:00:15
问题 My add-in has a MessageComposeCommandSurface ExtensionPoint that adds a button to the ribbon when the user is composing a message and MessageReadCommandSurface for the read mode. I expected the button to always be enabled when it is visible (e.g. when the user is composing a new message or replying to an existing one). Works perfectly, but my add-in is greyed out/disabled when opening a template (save a message as a template and open .msg file with outlook) . Add-in is greyed out if .msg was

Excel JS Online Settings not persisting past session

吃可爱长大的小学妹 提交于 2019-12-05 07:22:00
问题 TL;DR: I'm having the same problem asked here: Excel JS API - SettingCollection not persisting Basically, I have an Excel add-in that is trying to save some information to document settings and retrieve it later. The whole thing works perfectly on the native Mac client, but does not work on Excel online. No errors, and the document setting appears to be there even after refreshing the Taskpane. But once the browser tab is refreshed, the document setting is no longer retrievable. Is this a

EWS request not responding with error on Mac

旧巷老猫 提交于 2019-12-05 05:42:39
问题 In our Outlook add-in, we are using makeEwsRequestAsync to get the current email's MimeContent . We understand there is a 1MB request/response limit when using EWS via the JavaScript API. When we reach this limit on Windows, we at least see this message: "Response exceeds 1 MB size limit. Please modify your EWS request". However, when making this request for a large email (>1MB) on Mac (Outlook 2016), we don't get any sort of response whatsoever. The add-in just seems to hang. Is there any

Powerpoint content add-in on Windows just show an image in slide show mode instead of a web app

会有一股神秘感。 提交于 2019-12-05 02:23:04
问题 I developed a powerpoint content addin and it works fine on Mac. Then I test it on Windows and found out that when I go to slide show mode, Powerpoint just show an image (a snapshot at the time entering to slide mode) instead of a web app. There is no interaction to the addin on slide show mode, clicking on it just make it move to the next slide. The addin works fine in edit mode though. Strangely, this behaviour is not the same for all Powerpoint (2016) on Windows. I tested on another