|
1. The entire Excel table is called a worksheet: WorkBook, and it contains a page (worksheet): Sheet; Row: Row; Cell. 2. NPOI is the C# version of POI, and the index of NPOI's rows and columns starts from 0 3. There are two formats for POI reading Excel, one is HSSF and the other is XSSF. The differences between HSSF and XSSF are as follows: HSSF is the POI Project's pure Java implementation of the Excel '97(-2007) file format. XSSF is the POI Project's pure Java implementation of the Excel 2007 OOXML (.xlsx) file format. That is, HSSF is applicable to versions before 2007, and XSSF is applicable to 2007 and above. The following is an example of using NPOI to read and write Excel: The function of ExcelHelper is to write data from a DataTable to Excel, or read data from Excel to a DataTable. ExcelHelper class:
NPOI 2.2.0.0.part01.rar
(1 MB, Number of downloads: 13)
NPOI 2.2.0.0.part02.rar
(1 MB, Number of downloads: 11)
NPOI 2.2.0.0.part03.rar
(1 MB, Number of downloads: 6)
NPOI 2.2.0.0.part04.rar
(552.54 KB, Number of downloads: 1)
|