I'm trying to get the cols from the WorksheetPart but i just can't. It always returns a empty list. Do I need also to create the cols and then associate it to the rows (if yes, how?) or i can just add the cells to the rows and then the sheet will understand that there are news cols on the list?
I'm using the example code with the row.getC().add(createCell("hello world!")); inside a for(int i=0; i<2; i++) to insert 2 cells into a row (2 cols).
My code to get the cols:
- Code: Select all
List<Cols> lstCols = sheet.getContents().getCols();
It always return 0 on the lstCols.size() method.
Looking for help