Copy sheet with JXL in Java

后端 未结 6 1672
轮回少年
轮回少年 2021-01-03 05:21

I would like to copy a sheet from an existing XLS document to a new one to a new location.
How could I do this with JXL?

Workbook w1 = Workbook.getWork         


        
6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-03 06:10

    if (readFormat != null) {
    
        WritableCellFormat newFormat = new WritableCellFormat(readFormat);
    
        newCell.setCellFormat(newFormat);
    
        newSheet.addCell(newCell);
    
    }
    

提交回复
热议问题