Skip to content
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

Word: Order of SdtBlock elements is not correct #911

Closed
PBrunot opened this issue Aug 16, 2022 · 0 comments
Closed

Word: Order of SdtBlock elements is not correct #911

PBrunot opened this issue Aug 16, 2022 · 0 comments

Comments

@PBrunot
Copy link
Contributor

PBrunot commented Aug 16, 2022

When saving a document, the StdBlock elements must be saved as sdtPr, sdtEndPr, sdtContent as per the schema definition:

<complexType name="CT_SdtRow">
	<sequence>
	<element name="sdtPr" type="CT_SdtPr" minOccurs="0" maxOccurs="1"/>
	<element name="sdtEndPr" type="CT_SdtEndPr" minOccurs="0" maxOccurs="1"/>
	<element name="sdtContent" type="CT_SdtContentRow" minOccurs="0" maxOccurs="1"/>
	</sequence>
</complexType>

However NPOI is generating in the order sdtPr, sdtContent, sdtPr, sdtContent .

This results in validation failure with OPEN XML SDK 2.5 tool.

tonyqus added a commit that referenced this issue Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant