Valid characters for Excel sheet names

后端 未结 4 1682
谎友^
谎友^ 2020-12-09 15:04

In Java, we\'re using the following package to programmatically create excel documents:

org.apache.poi.hssf

If you attempt to set a sheet\'

4条回答
  •  执念已碎
    2020-12-09 15:41

    You can use this:

    protected Sheet createSheet(XSSFWorkbook book, String nameSheet) {
        return book.createSheet(WorkbookUtil.createSafeSheetName(nameSheet));
    }
    

提交回复
热议问题