office-js

Find the dirty(edited) cell/cells from excel sheet using Excel JavaScript API

匆匆过客 提交于 2019-12-08 03:40:15
问题 I am using office 365 and Excel online (Build 16.0.9403.1875). and I am creating Microsoft Excel online Add-ins, using Excel javascript API. How to find the dirty cell/cells from excel sheet using Excel Javascript API . If a cell is edited by value / formula / format, that became dirty. So I need to find, what are all the cells are dirty(edited) from range of cells. For Reference, Please find calculate method in this link. Advance Thanks. 回答1: There is no Excel JavaScript API that will return

How should range.expandTo be used in the word javascript api

梦想与她 提交于 2019-12-08 03:36:54
问题 I have created a taskpane addin for word that runs a search and will select the text between two search results. Until a couple of days ago the following code was running successfully: function onExpandTestClick() { var textToFind = "Word", range; return Word.run(function(context) { var searchResults = context.document.body.search(textToFind, { matchWildCards: false }); context.load(searchResults, "text"); return context.sync() .then(function() { range = searchResults.items[0].getRange("End")

Load document from local filesystem to Office online

ぃ、小莉子 提交于 2019-12-08 03:34:49
问题 I would like to load/save a file directly from the local filesystem in Word online (without uploading it to onedrive). Since this is not part of the default functionality I am trying to determine if this would be possible with an addin. The loading part: The Document object gives access to body load and save Methods however the documentation is unclear (to me) for load: Fills the proxy object created in JavaScript layer with property and object values specified in the parameter. It seems

How to use Fabric React on an existing Office Web Add-In project?

最后都变了- 提交于 2019-12-08 03:17:14
问题 It is possible to use office-ui-fabric-react on an existing Office Web Add-In project such as Word and Excel web add-in projects? Any preferred way to achieve this? Upon trying to run this from the root of my project, a lot of dependencies are missing: npm --save install office-ui-fabric-react It seems that it's not possible to use Fabric React without using create-react-app and creating a new "JavaScript > From Existing Node.js code" project. 来源: https://stackoverflow.com/questions/45187263

Can't get range from a defined name

元气小坏坏 提交于 2019-12-08 03:11:41
问题 Excel 2016 (Office 365) 32 bits, 16.0.6965.2115, Visual Studio 14.0.25425.01 Update 3 I'm quite sure the statement below used to work, but now it doesn't work anymore: var range = ctx.workbook.names.getItem("Countries").getRange(); I get an error stating that there is no support for getRange method, but it should be supported as documented here. What am I'm doing wrong? --- EDIT: this is the code I'm using --- function paintRange() { Excel.run(function (ctx) { var range = ctx.workbook.names

Outlook JS Addin - Compose form - how to check if the event/message is saved?

好久不见. 提交于 2019-12-08 02:43:11
问题 Is there a way in the compose form of an Outlook Add-In (office.js) to check if the object behind the form (in my case a calendar event) is already saved? 回答1: Check the ItemId; if it's undefined the message was not stored, and if it exists the message is from Draft. Please refer to Office.context.mailbox.item.itemId EDIT: I don't want to delete the answer completely, because of the valuable input in comments from Tim Wan. Basically there is no way to identify if message was persisted on the

How to identify the changed cell in office js api BindingDataChanged event?

坚强是说给别人听的谎言 提交于 2019-12-08 01:26:34
问题 When the data is changed in a binding in excel, the BindingDataChanged event if fired. function addHandler() { Office.select("bindings#MyBinding").addHandlerAsync( Office.EventType.BindingDataChanged, dataChanged); } function dataChanged(eventArgs) { write('Bound data changed in binding: ' + eventArgs.binding.id); } But the eventArgs do not have information about what part of the data is changed. Is there any way, we can track this information? We have bindings with large number of cells like

Cannot find name 'Office'

大城市里の小女人 提交于 2019-12-07 21:40:19
问题 I am using Angular 4 with Office.js. The project is created by Angular CLI. The code is simple: // declare const Office: any; // With the line above, the app runs perfect Office.initialize = function () { platformBrowserDynamic().bootstrapModule(AppModule); }; I got the error Cannot find name 'Office'. I already did npm install --save-dev @types/office-js My tsconfig.json file: { "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", "baseUrl": "src", "sourceMap": true,

We couldn't connect to the catalog server for this add-n

血红的双手。 提交于 2019-12-07 21:03:21
问题 I just realized that many add-ins cannot be loaded in Excel Online (Chrome): Does anyone know what's happening? 回答1: This is a known issue reported through StackOverflow and other channels. We're investigating this as a high priority issue. We'll let you know when the issue is resolved. 来源: https://stackoverflow.com/questions/46670563/we-couldnt-connect-to-the-catalog-server-for-this-add-n

Receiving 'ErrorAccessDenied' response code , when an outlook web add-in issues a GetItem request via the makeEwsRequestAsync api

左心房为你撑大大i 提交于 2019-12-07 20:06:40
问题 We are testing an Outlook Web Add-in with different combinations of Exchange Server and Outlook client versions. The add-in makes a GetItem request via the makeEwsRequestAsync API: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com