文件恢复
我正在为 Word (2007) 创建一个自动化解决方案。有时我不得不终止Word进程。下次启动 Word 时,会出现一个选项卡/窗口,建议恢复未保存的文档。我想禁用此窗口或让我的应用程序关闭此窗口。 我不知道该选项卡/窗口的入口点在哪里。
编辑:我发现这个词称之为“功能”修复,而不是恢复。仍然不知道如何避免/绕过/禁用它。
建议?
I am creating an automation solution for Word (2007). Sometimes I have to kill the Word process. Next time word is launched a tab/window appears suggesting to recover an unsaved document. I would like to either disable this or have my application close this window.
I have no idea where the entry point to this tab/window is.
EDIT: I've found out that word calls this "Feature" Repair, not Recover. Still no idea how to avoid/bypass/disable it.
Suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
可以通过在再次启动 Word 之前删除注册表中的 Resiliency 密钥来解决此问题。此处对此进行了描述:
您可以安全地删除本地计算机和当前用户的整个弹性密钥。请注意,密钥存储在多个位置:
This can be solved by deleting the Resiliency key in the Registry before starting Word again. This is described here:
You can safely delete the entire Resilience key for local machine and the current user. Note that there are various places where the key is stored:
我假设您可以访问该词:
http://www.ehow.com/ how_6012331_disable-document-recovery-word.html
[edit]
似乎这不起作用,你可以尝试
Options.SaveInterval = 0
(来源:http://www.tech-archive.net/Archive/Word/microsoft.public.word.customization.menustoolbars/2004-07/0195.html),
但我认为这具有与我先说的。
[/编辑]
I assume you have access to the word:
http://www.ehow.com/how_6012331_disable-document-recovery-word.html
[edit]
Seems this doesn't work, you could try
Options.SaveInterval = 0
(source: http://www.tech-archive.net/Archive/Word/microsoft.public.word.customization.menustoolbars/2004-07/0195.html)
but I assume this gives the same effect as what I said first.
[/edit]
不可能是atm。也许下一个SP...
Its not possible atm. Maybe on next SP...