I am new to JXL and have worked on read and write of Excel files. But I could not find a function which would delete a row after I successfully read that row and move to the next.
Code logic: If(readrow() == true) { deleteRow(); }
Is there any example available? If there is no delete function can I copy the row to a new sheet and after all the rows are complete I would rename this sheet as the old sheet and remove the old sheet? Thanks
JXL does have a delete/remove row function... check this link for help
for(int i=0;i<count;i++){
if(doneWithRow){
sheet.removeRow(i);
}
}
the code example is not much but should get you started.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.