Interop,撤消word撤消堆栈中的所有操作
我正在使用 C# 和 Word 互操作。 如何以编程方式撤消单词撤消堆栈中的所有操作?
问候。
I am using c# and word interop.
How can I, programmatically, undo all actions in word undo stack?
Regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是解决方案:
但在调用此代码之前,必须删除诸如 ContentControlBeforeDelete、ContentControlOnEnter 和 ContentControlOnExit 等字事件处理程序,否则字会冻结(http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/50a96ba1-85e3-498f-89bb- 4181220a565f)。
Here is the solution :
But before calling this code word event handlers like ContentControlBeforeDelete, ContentControlOnEnter and ContentControlOnExit must be removed otherwise word freezes(http://social.msdn.microsoft.com/Forums/en-US/vsto/thread/50a96ba1-85e3-498f-89bb-4181220a565f).