office-js

I want to use the Ewa API to make calls into methods that are in the Ewa.js / EwaMoss.js script files

妖精的绣舞 提交于 2019-12-25 14:32:53
问题 The Ewa namespace is documented here: https://msdn.microsoft.com/en-us/library/office/ee589018.aspx It's pretty easy to use, but certain calls are not documented and there's no sample code. The source for Ewa.js is here: https://s1-excel-15.cdn.office.net/x/sc/1662281009__layouts/App_Scripts/Ewa.js But it's minimized. If you look at the source, you will see that there's a call named "InsertDeleteCells". If you put a breakpoint there, and then attempt to delete a row from the spreadsheet in

I want to use the Ewa API to make calls into methods that are in the Ewa.js / EwaMoss.js script files

浪子不回头ぞ 提交于 2019-12-25 14:31:03
问题 The Ewa namespace is documented here: https://msdn.microsoft.com/en-us/library/office/ee589018.aspx It's pretty easy to use, but certain calls are not documented and there's no sample code. The source for Ewa.js is here: https://s1-excel-15.cdn.office.net/x/sc/1662281009__layouts/App_Scripts/Ewa.js But it's minimized. If you look at the source, you will see that there's a call named "InsertDeleteCells". If you put a breakpoint there, and then attempt to delete a row from the spreadsheet in

Office.js: Can I set the fill of a range of cells from a 2d array?

隐身守侯 提交于 2019-12-25 08:38:50
问题 So far, with office.js, I'm getting used to this pattern, where you assign an array of data to a corresponding excel range: range.values = [["Eurasia", "29.96", "0.25", "15-Feb" ]]; range.numberFormat = [[null, null, null, "m/d/yyyy;@"]]; However, I'm trying to change the background color of a range of cells using different colors in different cells and I already have a 2d array of colors which pertain to each cell. As far as I can tell, it looks like you can assign the fill color by looping

Insert OOXML comment with track changes

北慕城南 提交于 2019-12-25 08:00:03
问题 In my Word add-in I am inserting comments by replacing the selected text with OOXML that contains the comment. With "Track Changes" turned on Word registers this as 3 actions: delete+insert+comment. It even inserts a paragraph break but I am unsure if that is related. Is there a way to only have it register as a comment action like when inserting a comment using Word functionality? Using rangeObject.insertOoxml I tried to insert at the beginning and at the end of the string without any luck

Get all the VBA macros of a workbook by JavaScript API for Excel

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 05:09:53
问题 In VBA, we could use for example Wb.VBProject.VBComponents to fetch all the VBA macros of a workbook Wb . Does anyone know if JavaScript API for Excel provides any object or function to access that? 回答1: No, you cannot get the VBA macros out of the workbook using JS APIs. Out of curiosity, why would you want to do it? I.e., what would be the pitch you'd make for having us include this API? ~ Michael Zlatkovsky, developer on Office Extensibility team, MSFT 回答2: I think this github project is

OfficeJs/WordJs select text range by index and bind click event

醉酒当歌 提交于 2019-12-25 04:21:45
问题 First , Using OfficeJS/WordJS how can I select text in a paragraph by index and length. For example, my paragraph has 100 characters and I need to select all from index 2 till index 16. Second , When I found this range - how I can add an event handler for this range? I mean, when user click at 2-16 chars in my paragraph - I will show some useful information in my Add-in. I'm using Word 2016 Add-in. Thanks! 回答1: I recommend you to explore the Range functionalities we added as part of the 1.3

officejs addin - is it possible to share a ribbon with a vsto application? [duplicate]

邮差的信 提交于 2019-12-25 03:38:11
问题 This question already has an answer here : vsto and office web addin in same ribbon tab (1 answer) Closed last year . VSTO addins can use idQ to share ribbons with each other. Can a officejs addin share a ribbon with a VSTO addin too? How about with another officejs addin? 回答1: I'm afraid that that is not possible at this time. Office Add-ins use a different system for customizing the ribbon from VSTO. Sharing is not possible, but it is an interesting idea. Please suggest it on Office

body.search Issue in word desktop

岁酱吖の 提交于 2019-12-25 03:14:11
问题 context.document.body.search() is throwing an InvalidArgument exception in Word 2016 for desktops when the text to search for is larger than 255 characters. The same seems to be working with Word Online. var searchResults = context.document.body.search("TextMoreThan255Chars"); context.load(searchResults); return context.sync().then(function() { }); 回答1: What you're experiencing is a limitation in Word (for the desktop). Some more information is available on Greg Maxey's site, for example. The

Disable Word Online platform when publishing office js application to store

天涯浪子 提交于 2019-12-25 02:16:11
问题 Is it possible to publish office js Word plugin for Word 2016+ but not for Word Online platform? 回答1: All apps and add-ins submitted to the Office Store must comply with the Office Store Validation Policies Specifically section 4.12.1, "Your add-in must work across all platforms that support the methods that you define in the Requirements element in your add-in manifest." For details about which platforms support which methods, see Office Add-in host and platform availability. 来源: https:/

How to deploy officeJS addin on office online on-premise server?

十年热恋 提交于 2019-12-25 00:37:36
问题 I have written a small officeJS addin for excel which run perfectly on desktop excel client. Also office online from onedrive gives an option of installing the addin from the ribbon menu. I want to use this officeJS addin to run on either of the following configuration: On premise office online server configured with on premise sharepoint server. On premise office online server with my own implementation of wopi host. How to deploy an officeJS addin on office online on premise server which is