How can I write to an Excel spreadsheet using Linq?

后端 未结 6 411
独厮守ぢ
独厮守ぢ 2020-12-28 10:01

I\'m writing an app where I need to retrieve some rows from a DB and dump them into an Excel spreadsheet. I\'m using Linq to retrieve these rows.

Is it possible to

6条回答
  •  一向
    一向 (楼主)
    2020-12-28 10:08

    You can:

    • Create a CSV file, which is associated with Excel on most systems.
    • Create Excel Worksheet object and populate it manually. Google Search
    • Using an XLS/XLSX generating Control. I have use Spire.XLS from http://www.e-iceblue.com/xls/xlsintro.htm

提交回复
热议问题