office-js

Detect if file is open and being edited

[亡魂溺海] 提交于 2020-08-10 16:41:02
问题 Is there a way to detect within a 365 Addin, if a file is currently being edited before deleting from OneDrive? I checked documentations for Microsoft Graph, Office Dev and OneDrive but didn't find anything. If there currently isn't way, is Microsoft considering to make a call or service for the future? Thank you, 回答1: unfortunately there isn't a way to do this right now. However, if a file is currently being edited, then DELETE will return an error, since the file is effectively locked by

Detect if file is open and being edited

江枫思渺然 提交于 2020-08-10 16:39:25
问题 Is there a way to detect within a 365 Addin, if a file is currently being edited before deleting from OneDrive? I checked documentations for Microsoft Graph, Office Dev and OneDrive but didn't find anything. If there currently isn't way, is Microsoft considering to make a call or service for the future? Thank you, 回答1: unfortunately there isn't a way to do this right now. However, if a file is currently being edited, then DELETE will return an error, since the file is effectively locked by

Unable to use window.history.replaceState function in Mail Addin

早过忘川 提交于 2020-08-09 07:09:07
问题 I have created a SPA mail add-in for outlook365 using durandal framework and using Office365 JavaScript API(office.js). Somewhere in my application I want to use window.history.replaceState function but this function is set explicitly null in office.js causing the error. //following lines are presents in Office.js window.history.replaceState = null; window.history.pushState = null; 回答1: There are certain functions that Microsoft doesn't support within Office Add Ins (Alert being another one).

office addin dev 2016 and newer: how to add insert new page / slide button in the task pane app

六眼飞鱼酱① 提交于 2020-07-23 06:52:20
问题 I am looking for directions (API reference / samples) to create a insert new page buttons along with Slide number grid view for quick navigation to slides in Powerpoint 2013 and newer additions with an addin For this I guess we would need the Office JS Api to i) Read the current number of slides, ii) Event listeners for add / remove slide iii) Insert / Duplicate particular slide into presentation iv) Navigate to particular slide So, to begin with I started following - https://docs.microsoft

office addin dev 2016 and newer: how to add insert new page / slide button in the task pane app

 ̄綄美尐妖づ 提交于 2020-07-23 06:51:48
问题 I am looking for directions (API reference / samples) to create a insert new page buttons along with Slide number grid view for quick navigation to slides in Powerpoint 2013 and newer additions with an addin For this I guess we would need the Office JS Api to i) Read the current number of slides, ii) Event listeners for add / remove slide iii) Insert / Duplicate particular slide into presentation iv) Navigate to particular slide So, to begin with I started following - https://docs.microsoft