office-js

Office Web Add-ins - Internal error when saving settings

无人久伴 提交于 2019-11-30 20:15:28
问题 I'm getting an failure when trying to save my document settings. The message is the following: {"name":"Internal Error","message":"An internal error has occurred.","code":5001} My code: Office.context.document.settings.set('token', token); Office.context.document.settings.set('email', email); Office.context.document.settings.saveAsync(function (asyncResult) { if (asyncResult.error) { displayError(asyncResult.error.message); } }); The problem revealed when I reinstalled my OS (Windows 10) and

How to enable On-Send Feature for New Outlook Web App

南楼画角 提交于 2019-11-30 19:20:14
问题 Does the New OWA support on send? I have an addin that uses the on-send feature, it works fine in the old OWA but not the new OWA, do i have to do some extra configurations in order to get on-send to work in new OWA? 回答1: onSend feature is currently not available on new OWA. We are currently working on it and should be available in the near future (no tentative date available). 来源: https://stackoverflow.com/questions/55510506/how-to-enable-on-send-feature-for-new-outlook-web-app

How to show vertical pane in Outlook add-ins in Outlook Web App (OWA), Outlook 2016 Mac & Windows

▼魔方 西西 提交于 2019-11-30 17:31:12
问题 I am developing an outlook add-in targeting OWA, Outlook 2016 for Mac & Windows. My requirement is to show the add-in vertically on right side while reading and composing mail. For compose it is by default showing as desired but for reading it is showing horizontally which I want to show vertically. In short I like to show my add-in exactly same as Evernote add-in is showing. Your help will be much appreciated. Following screen-shot of Evernote in OWA is what I want to show including icon

Console log in Javascript Office Addin

旧巷老猫 提交于 2019-11-30 12:48:39
I have a question about "console.log" in Javascript Web Office Addins . Currently I am working on Javascript Word Addin and can't troubleshoot it, because I don't understand where the "console.log" output is sent. On Microsoft site there are a lot of examples, that contain contain "console.log", but they never specify how to check these outputs. So, the question is how can I see this "console.log" output. I am not using Visual Studio. BR, Alexey When you say you're not using Visual Studio, do you mean that you're not using the Visual Studio template? Or that you physically don't have Visual

Office js Web Addin failing to ExpandDL with soap call

女生的网名这么多〃 提交于 2019-11-30 11:26:33
I'm currently working with an Outlook Web Add-in with Office.js. In this project, we require sending mail merge emails to handle Distribution Lists and Groups. We use the ExpandDL call and our soap request looks like: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Header>

No stack trace info when error happens in Office JS API

纵饮孤独 提交于 2019-11-30 05:12:35
问题 We're getting lots of Office JS API errors in Application Insights, but they don't have a stack trace. All that we have - The browser's same-origin policy prevents us from getting the details of this exception. Consider using 'crossorigin' attribute. . Note, we have set 'crossorigin' attribute to office.js in Add-In HTML: <script src="//appsforoffice.microsoft.com/lib/1.1/hosted/office.js" type="text/javascript" crossorigin="anonymous"></script> The issue is following: office.js injects

How to determine if an Office Add-in is running under Excel or Excel Online?

白昼怎懂夜的黑 提交于 2019-11-29 22:16:17
问题 I'm writing an Office Add-in (formerly, Apps for Office). I'm using office.js and in some point of code I want to check if the app is running in excel (desktop software) or running on the web (Excel Online) Something like: if (Office.IsRunningOnWeb){ // Do something. } 回答1: You can use document type: if (Microsoft.Office.WebExtension.context.document instanceof OSF.DDA.ExcelWebAppDocument) { //Your app running on the web } if (Microsoft.Office.WebExtension.context.document instanceof OSF.DDA

Console log in Javascript Office Addin

一曲冷凌霜 提交于 2019-11-29 17:50:26
问题 I have a question about "console.log" in Javascript Web Office Addins . Currently I am working on Javascript Word Addin and can't troubleshoot it, because I don't understand where the "console.log" output is sent. On Microsoft site there are a lot of examples, that contain contain "console.log", but they never specify how to check these outputs. So, the question is how can I see this "console.log" output. I am not using Visual Studio. BR, Alexey 回答1: When you say you're not using Visual

Office js Web Addin failing to ExpandDL with soap call

烈酒焚心 提交于 2019-11-29 17:08:11
问题 I'm currently working with an Outlook Web Add-in with Office.js. In this project, we require sending mail merge emails to handle Distribution Lists and Groups. We use the ExpandDL call and our soap request looks like: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org

Keep Office add-in task pane open at document load

不想你离开。 提交于 2019-11-29 16:54:25
I have a task pane (desktop) Office add-in built with the latest VS 2015 template for Excel and Word add-ins. When I open the file, the add-in task pane is not visible. My users need to click a button on the toolbar to open it, which they complain about. In addition, I save the document with the task pane expanded but it does not affect that behavior. I remember a previous version of the add-in manifest (when it was called app for Office) kept the pane open but I upgraded it so I can use custom tabs in the Office ribbon. Can I make the task pane stay expanded when the document or worksheet