是否有一种方法可以在基于JavaScript的Office加载项中捕获OnSave()事件?

发布于 2025-02-10 08:43:29 字数 190 浏览 2 评论 0 原文

我想捕获诸如谁创建/编辑文档(Excel,Word或PPT)之类的信息,它是旧的和新的filepath(如果保存在其他地方)以及什么是更改。

每当用户保存文档(Excel或Word)时,我都想捕获这些信息。但是我找不到任何活动处理程序在Office插件文档中()或OnClose()等活动处理程序。

谁能帮助我找出一种实现这一目标的方法?

I want to capture Information like who created/edited the document (Excel, word or ppt), It's File path both Old and new filePath (if saved at a different place) and what is the change.

I want to capture these information whenever user saves a document (Excel or word). But I'm not finding any event handlers like OnSave() or OnClose() in Office Plugin documentation.

Can anyone please help me figure out a way to achieve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

陈年往事 2025-02-17 08:43:29

Officejs 没有为此提供任何东西。您可以在页面与事件一起工作。

当开发团队完成计划过程时,考虑了技术社区的功能请求。使用github标签:

OfficeJS doesn't provide anything for that. You can find the list of available events on the Work with Events using the Excel JavaScript API page.

Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: “Type: product feature request” at https://aka.ms/M365dev-suggestions .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文