2012-06-21 55 views

回答

2

自动恢复时间:Globals.ThisAddIn.Application.Options.SaveInterval

自动恢复路径:

Globals.ThisAddIn.Application.Options.DefaultFilePath(WdDefaultFilePath.wdAutoRecoverPath) 
+0

大,但正确的做法是:Globals.ThisAddIn.Application.Options.get_DefaultFilePath(WdDefaultFilePath.wdAutoRecoverPath) –

+0

我没有看到'2010年的get_DefaultFilePath'方法可能适用于旧版本?这个答案对我来说是正确的。 – Chris

+0

这几乎工作。这是一个索引器,所以不得不使用方括号。我想设置值,所以我使用:Globals.ThisAddIn.Application.Options.DefaultFilePath [Word.WdDefaultFilePath.wdAutoRecoverPath] = recoverPath; –