Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个动态的带有标签的 HTML 表格:
table, th, thead, td, tbody, tr and a div at the end
它也有colspans。
closedXML 可以直接将其导入工作表并将其呈现为 XML 吗?
不,ClosedXML 不能导入 HTML。
您必须自己解析 HTML(使用HTML Agility Pack之类的东西)并将 HTML 表中每个单元格的内容放在 ClosedXML 电子表格的相应单元格中。