是否可以在Office.js上拦截事件?

问题描述 投票:0回答:1

我是Office.js的新手,我想知道在用户保存文档,打开文档,打印文档时是否有可能截获,如果是,该怎么办?

office365 office-js office-addins excel-addins word-addins
1个回答
0
投票
要打开加载项,可以使用

Office.onReady(); { Excel.run(async (context) => { let sheets = context.workbook.worksheets; // your code logic here console.log("Start"); await context.sync(); }); }

到目前为止,我们没有onSaved事件,因为我们具有自动保存功能,因此文档将被自动保存。因此,我们决定不提供onSaved事件。 
© www.soinside.com 2019 - 2024. All rights reserved.