我怎么知道用户使用.NET单击了文件->保存在word文档中?
我如何知道用户使用 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您正在创建 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