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?
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
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]
Its not possible atm. Maybe on next SP...