Word 2007< w:t>标签 [英] Word 2007 <w:t> Tags
问题描述
我正在编写一个读取Word 2007 XML的程序,找到我定义的自定义标签(例如:#Anount#)并用来自a的值替换它们数据库。它是一种程序化的邮件合并。我的问题是,我创建了一个"模板"。文档可能如下所示:
I am writing a program that reads Word 2007 XML, finds custom tags I define (example: #Amount#) and replaces them with a value from a database. It is sort of a programmatic mail merge. My issue is this, I create a "template" document that might look like the following: 模板文档标题 某些文字有些文字#Anount#some text some text Some text some text #Amount# some text some text 当我的程序读入XML时,它会查找#Amount#来替换,但是井号是由文本标签包围的,例如< ; w:t>#< / w:t>,所以我的发现失败了。有没有办法阻止Word删除我的文本? When my program reads the XML in, it looks for #Amount# to replace, but the pound signs are being surrounded by text tags, like <w:t>#</w:t>, so my find is failing. Is there any way to prevent Word from cutting my text up? 谢谢! Thanks!
推荐答案
您有没有收到过这方面的解决方案?我有同样的问题,令人沮丧。
谢谢。
Did you ever receive a solution for this? I have the same problem and it is frustrating.
Thanks.
这篇关于Word 2007< w:t>标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!