更新文档问题 [英] Updating Document Problem

查看:116
本文介绍了更新文档问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Silverlight完全信任应用程序,该应用程序读入docx文件,解压缩,操纵document.xml文件并将其拉回来再次。  

I'm working on a Silverlight full trust app that reads in a docx file, unzips it, manipulates the document.xml file and zips it back up again.  

每当我尝试打开生成的docx文件时,我都会因为内容有问题而无法打开文件。"

Everytime I try to open the resulting docx file, I get "file cannot be opened because of a problem with the contents.."

为了找到问题,我绕过了任何操作,所以我有效地阅读原始document.xml文件并将其直接保存到我要放置的另一个document.xml文件中在桌面上。  如果我将原始document.xml
与我在记事本中新生成的document.xml进行比较,内容看起来与预期完全相同,  但如果我用我的新文件替换原始document.xml,手动压缩它并将zip重命名为docx,我仍然得到"文件无法打开.."尝试用单词启动时出现
问题。

In an attempt to find the problem, I've bypassed any manipulation, so effectively I'm reading in the original document.xml file and saving it directly to another document.xml file which I'm placing on the desktop.   If I compare the original document.xml and my newly generated document.xml in notepad, the contents look exactly the same, as expected,   but if I replace the original document.xml with my new one, manually zip it up and rename the zip as docx, I still get the "file cannot be opened.." problem when trying to launch it in word.

这是我第一次参与Open XML,所以我可能会遗漏一些明显的东西,但是如果有人可以建议的话可能会出现什么问题,我将非常感激。

It's the first time I've been involved with Open XML, so I may be missing something obvious, but if anyone could suggest what could be going wrong, I'd be very grateful.

谢谢,

Russ

Thanks,
Russ

 

 

 

 

 

推荐答案

Hello Russ, 

Hello Russ, 

感谢您的提问。 我是试图让熟悉这个主题的人参与进一步研究这个问题。可能会有一些时间延迟。感谢您的耐心。 

Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. 

感谢您的理解和支持。

最好的问候,

Bessie Zhao - MSFT

论坛中的MSDN订阅者支持

如果您对我们的支持有任何反馈,请联系
msdnmg@microsoft.com


这篇关于更新文档问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆