问题
I have an HTML table that is dynamic and has tags:
table, th, thead, td, tbody, tr and a div at the end
It also has colspans too.
Can closedXML just import this into a worksheet as is and render it out as XML?
回答1:
No, ClosedXML can not import HTML.
You have to parse the HTML yourself (using something like HTML Agility Pack) and put the content of each cell in the HTML table in the corresponding cell of the ClosedXML spreadsheet.
来源:https://stackoverflow.com/questions/23257900/can-closedxml-write-out-an-html-table-for-excel