更新文档问题

编程入门 行业动态 更新时间:2024-10-21 11:40:07
本文介绍了更新文档问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在开发一个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 。

更多推荐

更新文档问题

本文发布于:2023-11-28 10:07:22,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641967.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文档

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!