From 9af00b9b98daa2beca7bbf7805b88da4963a8cd1 Mon Sep 17 00:00:00 2001 From: xuri Date: Mon, 15 Mar 2021 23:56:36 +0800 Subject: This closes #804, fixes can't add timelines and slicers for a pivot table in generated spreadsheet --- xmlDrawing.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xmlDrawing.go') diff --git a/xmlDrawing.go b/xmlDrawing.go index d2a59e1..76d7e17 100644 --- a/xmlDrawing.go +++ b/xmlDrawing.go @@ -1,4 +1,4 @@ -// Copyright 2016 - 2020 The excelize Authors. All rights reserved. Use of +// Copyright 2016 - 2021 The excelize Authors. All rights reserved. Use of // this source code is governed by a BSD-style license that can be found in // the LICENSE file. // @@ -100,6 +100,11 @@ const ( TotalColumns = 16384 TotalSheetHyperlinks = 65529 TotalCellChars = 32767 + // pivotTableVersion should be greater than 3. One or more of the + // PivotTables chosen are created in a version of Excel earlier than + // Excel 2007 or in compatibility mode. Slicer can only be used with + // PivotTables created in Excel 2007 or a newer version of Excel. + pivotTableVersion = 3 ) var supportImageTypes = map[string]string{".gif": ".gif", ".jpg": ".jpeg", ".jpeg": ".jpeg", ".png": ".png", ".tif": ".tiff", ".tiff": ".tiff"} -- cgit v1.2.1