库编写一个Excel文件 [英] Library to write an Excel file
本文介绍了库编写一个Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Microsoft Excel Interop库导出Excel文件。但是,该库的限制是:
I am using Microsoft Excel Interop library for exporting Excel file. However, the limit of this library is that:
- 要求用户的电脑必须具有Microsoft Excel。
- 当写入内容时,必须打开Microsoft Excel才能自动化。
- 要保存文件,用户必须手动执行:单击文件 - >保存。
我需要一个图书馆:
- 使用Excel格式将内容写入内存。
- 以编程方式将此内容保存到文件。
注意:我使用.net 2.0和C#。
Notes: I use .net 2.0 and C#.
谢谢。
推荐答案
我已经使用 EPPlus 进行.xlsx阅读/写作,而且它的工作很好
I have used EPPlus for .xlsx reading/writing and it has worked great
这篇关于库编写一个Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文