加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

无法打开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

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有