Document Recovery

2019-06-23 23:34发布

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?

3条回答
冷血范
2楼-- · 2019-06-23 23:50

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
查看更多
一纸荒年 Trace。
3楼-- · 2019-06-24 00:01

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]

查看更多
不美不萌又怎样
4楼-- · 2019-06-24 00:05

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

查看更多
登录 后发表回答