From f8a54efd12a5a36fc3369e4db3caa7f0c7a077a1 Mon Sep 17 00:00:00 2001 From: Yoshiki Higo Date: Tue, 23 Aug 2016 16:57:29 +0900 Subject: [PATCH] Followup to commit 401d3eec77c20483b616871e7a86423795b01fc2 --- .../apache/poi/xssf/usermodel/examples/CreatePivotTable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/examples/src/org/apache/poi/xssf/usermodel/examples/CreatePivotTable.java b/src/examples/src/org/apache/poi/xssf/usermodel/examples/CreatePivotTable.java index 518ec37f484..6c340bc3a68 100644 --- a/src/examples/src/org/apache/poi/xssf/usermodel/examples/CreatePivotTable.java +++ b/src/examples/src/org/apache/poi/xssf/usermodel/examples/CreatePivotTable.java @@ -39,7 +39,7 @@ public static void main(String[] args) throws FileNotFoundException, IOException //Create some data to build the pivot table on setCellData(sheet); - XSSFPivotTable pivotTable = sheet.createPivotTable(new AreaReference("A1:D4"), new CellReference("H5")); + XSSFPivotTable pivotTable = sheet.createPivotTable(new AreaReference("A1:D4", SpreadsheetVersion.EXCEL2007), new CellReference("H5")); //Configure the pivot table //Use first column as row label pivotTable.addRowLabel(0);