草庐IT

rowFields

全部标签

java - 使用 Apache POI 将列标签插入数据透视表?

我使用ApachePOI3.11创建了一个数据透视表。像这样:FileInputStreamfile=newFileInputStream(newFile(path+fname));XSSFWorkbookworkbook=newXSSFWorkbook(file);XSSFSheetsheet=workbook.getSheetAt(0);//areaofpivotdataAreaReferencea=newAreaReference("A1:J4");CellReferenceb=newCellReference("N5");XSSFPivotTablepivotTable=she