office-js

How to hide content of binding using office.js?

我是研究僧i 提交于 2019-12-25 00:16:19
问题 The Word desktop app allows to hide/display the text by togggling 'Hidden' property in Font properties. The same can be achieved by setting <w:vanish /> property using binding.setDataAsync(data, Office.coercionType.OOXML) which sets data to a binding. It works in Word desktop app but doesn't work in Word Online. The XML can be found here. I tried setting data as html and use display: none; as style to the root element and that's not working. Are there any other ways to hide text with Office

Office.initialize raises $rootScope:infdig

只愿长相守 提交于 2019-12-24 20:48:37
问题 Previously my add-in worked well in different browsers. Recently, in some browsers it does not load well (error messages in the console + just shows a blank page in UI); in some browsers it loads, but with error messages in the console. It is also odd that it works well in localhost , but not in production. Here is the minimum code: console.log("OfficeHelpers.Utilities.host: " + OfficeHelpers.Utilities.host); console.log("OfficeHelpers.Utilities.platform: " + OfficeHelpers.Utilities.platform)

Powerpoint Add-In - saveAsync does not save settings when called outside of Office.initialize

别等时光非礼了梦想. 提交于 2019-12-24 18:55:31
问题 I'm developing a content add-in for PowerPoint and I'm trying to persist its state when the user reloads the presentation using the Office.context.document.settings functions ( get , set , remove and saveAsync ). However, it appears that saveAsync calls made outside of the Office.initialize function do not actually save the current settings, as upon reloading of the presentation, only the settings saved during the initialization are persisted. For demonstration, here is a minimal example of a

How to activate taskpane plugin/addin for office online when i open a excel file.[Office Addin]

浪尽此生 提交于 2019-12-24 17:05:29
问题 I have created the custom addins for office 2016, and its online version. AddIns for office 2016, provide the option to add the ribbon bar button and when you click on it, a taskpane is shown. If i dont use the ribbon bar element in manifest file of addin and if i close my excel file with taskpane open and then again open the same excel file, i see that taskpane is showing but if i have ribbon button for showing my taskpane, and if i do same action like closing and saving the excel file and

Excel JavaScript API (ExcelApi1.1) fails when creating a table/range with a large data set (400k-600k rows) returning the error “GeneralException”

被刻印的时光 ゝ 提交于 2019-12-24 15:40:50
问题 When using the Excel JavaScript API (ExcelApi1.1) to create a table and add data via a web Excel add-in, using an Excel document in desktop office, the table failed to be created when attempting to add 400k-600k or more rows, returning the error “GeneralException: An internal error has occurred.” Note: When using an Excel document in online office the failure occurs at 20k – 40k or more rows, returning the error “GeneralException: An internal error has occurred.” Initially the implementation

Office.js Excel Online > chart.getImage() errors

安稳与你 提交于 2019-12-24 12:14:41
问题 Summary: Some charts (when not the first chart), cause errors in Excel Online with chart.getImage(). Usage scenario: I use chart.getImage() to get the base64 encoded image so charts can be programmatically inserted into Word/PowerPoint documents. It is used in the Excel-to-Word Document Automation Add-In. There is never an issue with Excel for Windows or Mac. Issue only occurs with Excel Online. Error only occurs with some chart types, such as Pareto, Funnel, and common charts with some

How to Polyfill Promise in Visual Studio 2017 Office Add-in TypeScript Project

非 Y 不嫁゛ 提交于 2019-12-24 11:37:18
问题 I am using TypeScript in an Office Add-in, and I want to use async / await functions specifically. The project fails to compile with "TS2468 TypeScript Cannot find global value 'Promise'." I have read on here that I have to create a polyfill for Promise, but so far have not been able to figure out how to get a polyfill working in Visual Studio 2017. I am attempting to use core-js, and have installed it in to the project using npm install core-js. I can see core-js is installed under node

displayDialogAsync method of Office.js API not opening the page

家住魔仙堡 提交于 2019-12-24 10:19:05
问题 I used this Microsoft tutorial to build a WORD add-in in VS2017 . The add-in works as expected. Then, for a test, I dded a button btnTest in Home.html file's task pane markup. The btnTest calls the following function in Home.js . When you click the btnTest button in task pane the first line of the code (now commented out) opens the specified url in a browser but the second line does nothing. How can I make displayDialogAsync(…) work here? I'm using Office 2016 desktop version : function

Outlook add-in not displayed in Mac OS

我是研究僧i 提交于 2019-12-24 10:17:00
问题 We found that our Add-in cannot work on the latest Mac OS (High Sierra 10.13.1). Our outlook version is 15.40. The Add-in cannot be loaded correctly. The Add-in uses AngularJS. It looks the ngview of the AngularJS cannot be run correctly. We don't know how to do further analysis with such error. Do you know if the outlook has a place to see the error like the browser's development mode to see the console information? We use script below to bootstrap angular, I might think some error raised

Outlook for Mac lacks add-in command button group labels

我的未来我决定 提交于 2019-12-24 08:23:53
问题 Outlook add-in manifests are supposed to work on PC Desktop Outlook, OWA and Outlook for Mac. That mostly seems to be the case but we noticed an issue with Outlook for Mac. Outlook for Mac does not appear to have button group labels. Look at the Microsoft Store red briefcase "Store" button for example. In Windows Desktop Outlook this button is in the Add-ins button group as indicated by the text "Add-ins" as the label below the button. For Outlook for Mac the button group label is missing. In