DCSIMG
How to the disable background-saving and auto-recover features in Word 2003 - IronShay

How to the disable background-saving and auto-recover features in Word 2003

A few days ago I was given a request to disable the automatic saving capability of Word via an addin, so the document will be saved only when the user tells it to.

The solution for this is quite simple, but the names of these properties are quite tricky so I've decided to share it with you.

Here is the code you need to add:

// Disable the background save feature
Application.Options.BackgroundSave = false;
// Disable the auto-recover feature
Application.Options.SaveInterval = 0;

Line 2 is straight forward - setting the BackgroundSave property to false disables this feature.
Line 4 is quite tricky - when the SaveInterval property is set to 0, it means that auto-recovering is disabled. Any other number will represent the minutes between every auto-recover operation.

All the best,
Shay.

Published Monday, January 29, 2007 10:12 PM by shayf
תגים:, ,

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: