在我们的一个ASP.NET应用程序在C#中,我们获取特定的数据收集(亚音速收集)并将其导出到Excel.我们还希望导入特定格式的Excel文件.我在找一个可以用的图书馆.
要求:
- Excel 2007文件(Excel 2003支持超过64k行吗?我需要更多.)
- 服务器上不需要Excel
- 获取一个类型化的集合,如果可以的话,try 将数字字段作为数字放在Excel中.
- 适用于大文件(100k到10M)-速度足够快.
- 导出guid时不会崩溃!
- 不需要花费一大笔钱(没有像aspose这样的企业库).免费总是很棒,但也可以是商业图书馆.
你推荐什么图书馆?你用它来处理大量数据了吗?还有其他解决方案吗?
现在,我正在使用一个简单的工具生成HTML,稍后由Excel加载,但我正在失go 一些功能,而且加载时Excel会抱怨.我不需要生成图表或类似的东西,只需要导出原始数据.
我在考虑平面CSV文件,但Excel是客户的要求.我可以直接使用CSV,如果我有一个工具来转换Excel.鉴于Excel2007是一种基于xml(压缩)的文件格式,我猜这种库应该很容易找到.然而,对我来说最重要的是你的 comments 和意见.
EDIT: Ironically, in my opinion and following the answer with the most votes, the best Excel import&export library is no export at all. This is not the case for all scenarios, but it is for mine. XLS files support only 64k rows. XLSX supports up to 1M. The free libraries that I've tried feature bad performance (one second to load one row when you have 200k rows). I haven't tried the paid ones, as I feel they are overpriced for the value they deliver when all you need is a fast XLSX<->CSV conversion routine.