Write to certain cells in Excel spreadsheet withou

2019-07-23 04:03发布

I would like to write to an Excel spreadsheet on a server which doesn't have Excel installed. So Excel automation is not possible. I also need to write to certain cells using .NET. Is this possible and how? Can the ODBC driver be used to insert data at certain sheet cells? Without using expensive third party libraries.

标签: .net excel
2条回答
对你真心纯属浪费
2楼-- · 2019-07-23 04:41

There's also Koogra:

http://sourceforge.net/projects/koogra/

This library reads the Excel file in its native format (BIFF), also works with XSLX format as well.

查看更多
狗以群分
3楼-- · 2019-07-23 04:42

I've used with success the following open source projects:

  • ExcelPackage for OOXML formats (Office 2007)

  • NPOI for .XLS format (Office 2003)

Take a look at my blog posts. They show you what you're looking for:

Creating Excel spreadsheets .XLS and .XLSX in C#

NPOI with Excel Table and dynamic Chart

查看更多
登录 后发表回答