-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
脚注输出错误 #367
Labels
Milestone
Comments
根据微软官方文档 这两个xml node都是以CT_FtnEdnRef作为Model的,但是应该单独提供相应的继承对象,否则无法区分,会导致解析和生成错误。 将在下一个版本修复 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我的代码
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: