Microsoft doesn't publish the structure (called the Binary File Format). I
think they do provide it to selected companies under NDA and on the basis
of an agreement not to use the information to produce a clone of Word.
What is the single setting you want to change?
The value I would change, if I could, is the name and path of the template
associated with the document.
A bug was introduced with Word XP which causes it to be very, very slow when
opening documents for which the associated template no longer exists, has
been moved or renamed. See Microsoft Knowledge Base Article 830561
(Documents that have attached templates take a long time to open in Word
2002
http://support.microsoft.com/default.aspx?scid=kb;en-us;830561 ) and
Microsoft Knowledge Base Article 823372 (Your Word Documents Take a Long
Time to Open When They Have Attached Templates --
http://support.microsoft.com/default.aspx?scid=kb;en-us;823372 ). This was
supposedly fixed in the hotfix described in KB 823372. It wasn't.
My small law firm started ten years ago on Word 6, then upgraded to Word 95,
97, 2000 and we're presently on Word XP. We have over 10,000 documents. As
soon as we moved up to Word XP, it started taking over four minutes per
document to open (if the document's template no longer exists, has been
renamed or moved). Word becomes completely unresponsive while the time to
open the document passes. Apparently, Word is trying to find and open the
original template. Why, I have no idea. I thought the whole idea of a
template was to fill the new document at the time of creation. Once the new
doc is created, there is no reason I can see why the old template is needed
for anything. In 10 years, we have changed the names (twice) of our file
server and have changed the share name and path where templates are stored,
so at least 80% of our documents are affected by this bug.
If I knew the Word document file structure, I'd pay a programmer to write a
file parser to run over all our documents and change the template value of
every single one to NORMAL.DOT. A file parser would not use Word's code, so
it could change all the documents in an hour or two. We wrote a VB routine
which will do this, but it too takes > 4 minutes each to run because it is
using Word's code to open the files. 4 min. X 10,000 files = 40,000 min =
27.78 DAYS. The VB routine we wrote also falls pray to two other problems:
(1) if the file is marked "read only recommended" the routine has to save it
under a new name, then rename the new file to the old name (2) if the file
was created under Word 6.0, the routine tries to save the file it hangs due
to the prompt about saving in Word 6 vs. Word 97/2000/XP format.
Gray Strickland