我怎么知道用户使用.NET单击了文件->保存在word文档中?

发布于 2024-08-25 21:41:45 字数 96 浏览 2 评论 0原文

我如何知道用户使用 .NET 在 Word 文档中单击“文件保存”?

如果用户在 Word 文档中执行任何操作,那么我可以知道我的程序中的此事件 使用c#制作的。

How could I know that the user clicked File Save in word document using .NET?

If user make any action in word document then i can know what this event in my program
that made using c#.

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

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

发布评论

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

评论(1

想你的星星会说话 2024-09-01 21:41:45

如果您正在创建 C# VSTO 插件,则可以拦截文档 SAVE 或 SAVEAS 事件。

检查此线程以了解详细信息

如何使用 VSTO 在 Word 中自定义保存行为

If you're creating a C# VSTO addin, you can intercept the document SAVE or SAVEAS events.

Check this thread for details

How to customize save behaviour in Word using VSTO

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