Office 2007 SP2 can cause file corruption when saving Word docx fi

B

Ben G

After Office 2007 SP2 has been installed Word's docx file format cannot save
Document Variables, the values are written to the docx file as corrupt data.
Has anybody else experienced this problem or is there a known HotFix for this
issue? I've looked but cannot find any other reference to this problem.

Replication Procedures:
1. Open Word 2007 (SP2)
2. Start a new blank document
3. Create and run a macro that does the following to set a document variable:
ActiveDocument.Variables.Add "MyVariable", "This is the value of a document
variable"
4. Insert a new Field, select the field type "DocVariable" and enter the
field property "MyVariable".
5. The document should now show the text "This is the value of a document
variable" i.e. the value of the document variable you just created.
6. Save the document as "Word Document (*.docx)"
7. Close the document
8. Open the document.
9. Right click on the field and click "Update Field"
10. The field will now display corrupted text, the actual text will vary as
it is randomly corrupted data.

The text corruption occurs in the docx file (it has nothing to do with the
field, that's just the easiest mechanism for showing the current value). If
you extract the content of the docx file uzing Winzip and open the
"word\settings.xml" file you will clearly see that the value of the stored
document variable "MyVariable" is corrupted.
 
C

Chris Rust

After Office 2007 SP2 has been installed Word's docx file format cannot save
Document Variables, the values are written to the docx file as corrupt data.
Has anybody else experienced this problem or is there a known HotFix for this
issue? I've looked but cannot find any other reference to this problem.

Replication Procedures:
1. Open Word 2007 (SP2)
2. Start a new blank document
3. Create and run a macro that does the following to set a document variable:
ActiveDocument.Variables.Add "MyVariable", "This is the value of a document
variable"
4. Insert a new Field, select the field type "DocVariable" and enter the
field property "MyVariable".
5. The document should now show the text "This is the value of a document
variable" i.e. the value of the document variable you just created.
6. Save the document as "Word Document (*.docx)"
7. Close the document
8. Open the document.
9. Right click on the field and click "Update Field"
10. The field will now display corrupted text, the actual text will vary as
it is randomly corrupted data.

The text corruption occurs in the docx file (it has nothing to do with the
field, that's just the easiest mechanism for showing the current value). If
you extract the content of the docx file uzing Winzip and open the
"word\settings.xml" file you will clearly see that the value of the stored
document variable "MyVariable" is corrupted.
Uninstall KB969604 this is the cause of the issue
 

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