我需要在最终评估为空字符串的 word 文档中插入该字段。
我的一些想法;
- Set intersection: both sets have nothing in common and finally field result would lead to empty.
- "".concats(""), leads to ""
我们可以在office word文档中插入这种域代码吗?
我需要在最终评估为空字符串的 word 文档中插入该字段。
我的一些想法;
- Set intersection: both sets have nothing in common and finally field result would lead to empty.
- "".concats(""), leads to ""
我们可以在office word文档中插入这种域代码吗?
如果您只想插入一个带有空字符串的字段作为结果,您可以使用一个MACROBUTTON
没有标题的字段,该字段指向一个不存在的宏:
{ MACROBUTTON NoMacro }
使用 OpenXML SDK,您可以像这样创建这样的按钮:
var paragraph = new Paragraph(
new Run(new FieldChar { FieldCharType = FieldCharValues.Begin }),
new Run(new FieldCode { Space = SpaceProcessingModeValues.Preserve,
Text = " Macrobutton NoMacro " }),
new Run(new FieldChar() { FieldCharType = FieldCharValues.End }));