文件恢复

发布于 2024-10-13 01:34:00 字数 190 浏览 1 评论 0原文

我正在为 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 技术交流群。

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

发布评论

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

评论(3

一直在等你来 2024-10-20 01:34:00

可以通过在再次启动 Word 之前删除注册表中的 Resiliency 密钥来解决此问题。此处对此进行了描述:

每次您在 Word 中打开文档时,该文档都会以恢复模式打开,或者您会收到错误消息留言

您可以安全地删除本地计算机和当前用户的整个弹性密钥。请注意,密钥存储在多个位置:

  • HKEY_CURRENT_USER\Software\Microsoft\Office\\Word\Resiliency
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Office\\Word\Resiliency
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server\安装\Software\Microsoft\Office\Word\Resiliency

This can be solved by deleting the Resiliency key in the Registry before starting Word again. This is described here:

Every other time that you open a document in Word, the document opens in recovery mode or you receive an error message

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:

  • HKEY_CURRENT_USER\Software\Microsoft\Office\\Word\Resiliency
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Office\\Word\Resiliency
  • HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software\Microsoft\Office\\Word\Resiliency
生生漫 2024-10-20 01:34:00

我假设您可以访问该词:

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]

半边脸i 2024-10-20 01:34:00

不可能是atm。也许下一个SP...

Its not possible atm. Maybe on next SP...

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