Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Word 文档,其中包含一个名为“NBJ”的 mergeField
我打开 document.xml 我发现
<w:instrText xml:space="preserve"> MERGEFIELD NB</w:instrText>
该文档工作正常,但我不明白为什么我没有相同的合并字段名称?
字段编码可以拆分为多个元素,因此如果您再看一下文档的 XML,我猜您会发现另一个文本内容以“J”开头的元素。
通常,当您在 Word 中处理 XML 编码时,您需要注意 Word 经常将文本拆分为多个部分。原因当然并不总是很明显,但两个常见的原因是: