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

偶尔善良 提交于 2020-07-23 06:50:24

问题


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.com/en-us/office/dev/add-ins/tutorials/powerpoint-tutorial?view=office-js&tutorial-step=6

But, it only has specifications for navigating to particular elements and not the other features specified above, so are there any APIs with which we can -

i) Read the current number of slides, 
ii) Register event listeners for add / remove slide events
iii) Insert / Duplicate particular slide into presentation 
iv) Access menu items like Draw / Eraser

回答1:


There are currently no APIs in Office.js that support those scenarios. But these are good ideas. Please suggest them at Office Developer Voice.



来源:https://stackoverflow.com/questions/52463252/office-addin-dev-2016-and-newer-how-to-add-insert-new-page-slide-button-in-th

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!