onizet / html2openxml

Html2OpenXml is a small .Net library that convert simple or advanced HTML to plain OpenXml components. This program has started in 2009, initially to convert user's comments from SharePoint to Word.
MIT License
297 stars 106 forks source link

The specified argument is not a child of this element #135

Closed pauldbentley closed 2 weeks ago

pauldbentley commented 1 year ago

This exception is raised when processing a table with a class of a known style.

The exception is raised in TableStyleCollection.css inside ApplyTags with the call to properties.AddChild(tag.CloneNode(true));

This was changed in ee956a94af1450fb85329cc3ac33c32e31dea1b8 when the reflection use was remove.

I've attached a console app to reproduce

ConsoleApp2.zip

preetidulloo3bits commented 4 months ago

Hi, I am facing the same issue. Any solution?