无法打开office open XML文件,因为内容有错误
(2012-12-04 19:59:50)
标签:
杂谈 |
1. Rename MYDOC.docx to
MYDOC.zip
2. Unzip MYDOC.zip to the MYDOC/ folder
3. In MYDOC/word/, there is a file named document.xml
4. Open document.xml in Notepad++ (for example)
5. Go to the place where the Table of Content begins, by looking for the pair of tags ... TOC ... which contains a TOC field inside.
6. Look for " XE " without quotes after that (maybe without spaces), quickly verify that we still are in the table of content.
7. Look for the surrounding tags w:fldChar which encloses this " XE " : ... XE ...
8. Delete those two tags and the inner content (we just deleted the bad index entry)
9. If there are more (in the case when it was automatic for example), just repeat steps 6 to 8, until we are no more in the table of contents.
10. Once it's done, zip the folder MYDOC/ to MYDOC_REPAIRED.zip (for example)
11. Rename MYDOC_REPAIRED.zip to MYDOC_REPAIRED.docx (facultative step)
12. Open this last file with word, and hope that it was the only error
2. Unzip MYDOC.zip to the MYDOC/ folder
3. In MYDOC/word/, there is a file named document.xml
4. Open document.xml in Notepad++ (for example)
5. Go to the place where the Table of Content begins, by looking for the pair of tags ... TOC ... which contains a TOC field inside.
6. Look for " XE " without quotes after that (maybe without spaces), quickly verify that we still are in the table of content.
7. Look for the surrounding tags w:fldChar which encloses this " XE " : ... XE ...
8. Delete those two tags and the inner content (we just deleted the bad index entry)
9. If there are more (in the case when it was automatic for example), just repeat steps 6 to 8, until we are no more in the table of contents.
10. Once it's done, zip the folder MYDOC/ to MYDOC_REPAIRED.zip (for example)
11. Rename MYDOC_REPAIRED.zip to MYDOC_REPAIRED.docx (facultative step)
12. Open this last file with word, and hope that it was the only error