424425426427428429430431432433434
location.setFirstDataRow(1); location.setFirstHeaderRow(1); } else { location = pivotTableDefinition.getLocation(); } location.setRef(destination.formatAsString()); pivotTableDefinition.setLocation(location); //Set source for the pivot table CTPivotCacheDefinition cacheDef = getPivotCacheDefinition().getCTPivotCacheDefinition(); CTCacheSource cacheSource = cacheDef.addNewCacheSource();
5556575859606162636465
style.setShowRowStripes(true); //Set which area the table should be placed in AreaReference reference = new AreaReference(new CellReference(0, 0), new CellReference(2,2)); cttable.setRef(reference.formatAsString()); cttable.setId(1); cttable.setName("Test"); cttable.setTotalsRowCount(1); CTTableColumns columns = cttable.addNewTableColumns();
418419420421422423424425426427428