Autorecovery files sometimes not created

D

Dan

Hi. I've got a situation in WD2000 where an autorecovery file is not being
created when I expect it to be created. I've checked "save autorecovery
info" and set it to save every one minute. In most cases, it seems to work:
every time I make a change to a document, the autorecover info is saved
during the next minute. However, when I create a document containing two
subdocuments, Word doesn't seem to create an autorecovery file even after I
make changes to the master document (without saving). The difference APPEARS
to be the inclusion of the subdocuments, but I can't be sure about that. One
interesting note is that, after I insert the subdocuments (using
..Subdocuments.AddFromRange) , I save the whole document, thus creating two
subdocuments on disk (call them sub1.doc and sub2.doc); I make the changes
to the master doc after doing this save. I'm wondering if autorecover
doesn't do its thing because sub1.doc and sub2.doc haven't changed (even
though the master doc has). Anybody have any ideas what's going on?

Another related question: sometimes the process above creates a tmp file
with a name like ~WRL3946.tmp. It contains the exact same number of bytes as
the original file. Another time, however, Word created files called
~$xxx.doc (where xxx is the file name minus its first two characters). What
are these files and do they have any relation to the autorecovery process?

Thanks....
Dan
 
D

Dan

Thanks a lot Graham! SaveReminder.dot has some very cool code in it. Even
disregarding the immediate issue at hand, I learned about the System object,
and the Application.OnTime method, which I had not been aware of before.

A couple of questions:

1. Can I redistribute this addin with my company's application?
2. Do you know how the timer which OnTime sets determines whether Word is
idle? I'm concerned that the save operation might go off when I'm in the
midst of some other processing in Word.

Dan
 
G

Graham Mayor

SaveReminder is included in code supplied with Word as part of the
macros9.dot, so I find it difficult to see Microsoft objecting to your
making use of it. The download link on my web site is merely for convenience
to illustrate the underlying issue that Word does not have any inherent auto
backup function.

As for the timers, I confess that I have not even examined the code, and
personally I am in the habit of using CTRL+S regularly to save my work, so
for me at least the add-in is unnecessary.

It should be pretty simple to establish whether it activates when Word is
idle - I suspect not - by setting a short time interval and making Word
idle.

Have a good Christmas!

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top