Office软件好用,Java语言也好用,Apache POI提供Java操作Office的桥梁,Apache POI官网。
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.
上面可以看出,HSSF是用来操作旧版本的Excel文件的,XSSF是操作新版本的Excel文件的。
test