You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
else if (o is CT_FtnEdnRef)
((CT_FtnEdnRef)o).Write(sw, "endnoteReference");
else if (o is CT_FldChar)
((CT_FldChar)o).Write(sw, "fldChar");
else if (o is CT_Empty && this.ItemsElementName[i] == RunItemsChoiceType.footnoteRef)
sw.Write("<w:footnoteRef/>");
else if (o is CT_FtnEdnRef)
((CT_FtnEdnRef)o).Write(sw, "footnoteReference");
The text was updated successfully, but these errors were encountered:
我的代码
CT_FtnEdnRef m_ftnref = new CT_FtnEdnRef();
m_ftnref.id = m_FtnId;
m_FtnEdnR.Items.Add(m_ftnref);
m_FtnEdnR.ItemsElementName = new List();
m_FtnEdnR.ItemsElementName.Add(RunItemsChoiceType.footnoteReference);
结果输出到 word中的
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
<w:endnoteReference w:customMarkFollows="off" w:id="3"/>
</w:r>
应该是
<w:r>
<w:rPr>
<w:rStyle w:val="a7"/>
</w:rPr>
<w:footnoteReference w:customMarkFollows="off" w:id="3"/>
</w:r>
我查了下源代码这里是否有错误:
OpenXmlFormats/Wordprocessing/Run.cs
中internal void Write(StreamWriter sw, string nodeName)
The text was updated successfully, but these errors were encountered: