ScreenUpdating Office-js taskpane

≡放荡痞女 提交于 2019-12-11 06:07:50

问题


While developing a new taskpane addin we push a large two dementional object ot the excel workbook and format some rows based on another object.

While doing this the user can see his excel workbook flickering.

With the old com api there was a salution by turning off the screen updateing property. ScreenUpdating MSDN

is there something like this in office-js for excel?


回答1:


Office-js doesn't have an API to turning off screen updating. The flickering you mentioned is probably the control going back-n-forth between the data update and control returning to the UI. During this update timeframe, the API allows user to interact with Excel UI such as button/mouse clicks, selection, etc. I do understand this can be bothersome.

We are adding some features to help speed-up the update itself such as by delaying the calculation. This will reduce the duration for which users see the update mode on and off.



来源:https://stackoverflow.com/questions/41039493/screenupdating-office-js-taskpane

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