diff options
author | xuri <xuri.me@gmail.com> | 2021-03-15 23:56:36 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-03-15 23:56:36 +0800 |
commit | 9af00b9b98daa2beca7bbf7805b88da4963a8cd1 (patch) | |
tree | eb117946e5fda547c9136882287d0219ba62156f /xmlDrawing.go | |
parent | 2350866d460c883fbd0b3a403a62b943a5f6aca5 (diff) |
This closes #804, fixes can't add timelines and slicers for a pivot table in generated spreadsheet
Diffstat (limited to 'xmlDrawing.go')
-rw-r--r-- | xmlDrawing.go | 7 |
1 files changed, 6 insertions, 1 deletions
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"} |