Hi to all,
int sheetIndex = workbook.getWorksheets().add();
Worksheet sheet2 = workbook.getWorksheets().get(sheetIndex);
sheet2.setName(“Pivot”);
PivotTableCollection pivotTables = sheet2.getPivotTables();
Hi to all,
int sheetIndex = workbook.getWorksheets().add();
Worksheet sheet2 = workbook.getWorksheets().get(sheetIndex);
sheet2.setName(“Pivot”);
PivotTableCollection pivotTables = sheet2.getPivotTables();
I’ve “solved” in this way:
Cells cells = dataSource.getCells();
int maxCol = cells.getMaxDataColumn();
int maxRow = cells.getMaxDataRow();
String name = cells.get(maxRow, maxCol).getName();
PivotTableCollection pivotTables = newSheet.getPivotTables();
int index = pivotTables.add("=" + dataSource.getName() + “!A1:” + name, “A4”, “PivotTable1”);
Hi,
Thanks for your posting and using Aspose.Cells.
It is good to know that you were able to sort out this issue. If you encounter any other issue, please feel free to post. We will be glad to help you further.