Forum Discussion
- ZDGNContributor
Hi shaikgayaz
Regarding your groovy script, it seems the cell coordinates never change:
Label label = new Label(0, 1, holder.getNodeValue(xPath1)); sheet.addCell(label);
May be you should use a variable to manage either the column or row number.
As you can see it in the documentation, the label take column and row number as parameters:
Label(int c, int r, java.lang.String cont)
Creates a cell which, when added to the sheet, will be presented at the specified column and row co-ordinates and will contain the specified textHere is an example:
https://mkyong.com/java/jexcel-api-reading-and-writing-excel-file-in-java/
Hope this will help.
David.
Related Content
- 5 years ago
- 4 years ago
Recent Discussions
- 4 days ago