使用EPPlus从Excel文件生成HTML表? [英] Generating a HTML table from an Excel file using EPPlus?
问题描述
我想从Excel文件生成一个HTML表。 EPPlus包提供了用于操作excel文件的.net API。我很高兴知道是否可以使用EPPlus从Excel文件生成HTML表格代码?我没有找到任何文件,但直觉告诉我应该有办法做到这一点。
I would like to generate a HTML table from an excel file. The EPPlus package provides a .net API for manipulating excel file. I would be happy to know whether it is possible to generate a HTML table code from an Excel file using EPPlus? I couldn't find anything on the documentation, but intuition tells me that there should be a way to do it
谢谢!
推荐答案
如果你正在寻找EPPlus内置的东西,我没有看到任何直接导出HTML的东西。
If you are looking for something built into EPPlus, I havent seen anything that will export directly HTML.
最好的事情是将Excel文件导入EPPlus,并将数据提取到集合或 DataTable
。这应该是很直接的。
Best thing would be to bring in the Excel file to EPPlus and extract the data to a collection or DataTable
. That should be pretty straight forward.
从那里,有很多关于如何获取到html表的文档。快速搜索显示为第一个命中:
From there, there is plenty of documentation on how to get that to an html table. Quick search turned up this as the first hit:
这篇关于使用EPPlus从Excel文件生成HTML表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!