docx中泛型返回的xml是什么? [英] What is the xml for a generic return in docx?

查看:70
本文介绍了docx中泛型返回的xml是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将docx文件的worddocument.xml中的合并标签替换为来自我们数据库系统的数据。 (首先解压缩文件,读入worddocument.xml,进行替换,将新内容写回文件并再次压缩。)这很有效。
唯一我不知道的是如何插入没有样式的泛型返回。我发现
< w:r>< w:tab />< / w:r>作为通用标签使用 我的印象是< w:p />会做一般的回报工作。但是当我使用Word时无法打开docx文件。
我尝试了各种其他组合而没有成功。

I substitute merge labels in the worddocument.xml of docx-files with data from our database system. (First unzip the file, read in the worddocument.xml, do the substitutions, write the new content back to the file and zip it again.) That works great. The only thing which I don't know is how to insert a generic return without style. I found out that <w:r><w:tab/></w:r> works as a generic tab and I had the impression that <w:p/> would do the job for a generic return. But when I use that Word can't open the docx file anymore. I have tried all sorts of other combinations without succes.

我希望你能帮助我。

问候,

Martin Spanjaard

Martin Spanjaard

Trias Digitaal

Trias Digitaal

阿姆斯特丹

推荐答案

马丁,谢谢你的提问。协议文档小组的成员将很快回复您。

Hi Martin, thank you for your question. A member of the protocol documentation team will respond to you soon.


这篇关于docx中泛型返回的xml是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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