Deriving default setting POI cell width

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_34579060/article/details/90231300
         // 创建工作表
        Workbook workbook= new XSSFWorkbook();
      
        // 创建工作簿
        Sheet sheet = workbook.createSheet();
        // 设置默认宽度
        sheet.setDefaultColumnWidth(20);

 

Guess you like

Origin blog.csdn.net/qq_34579060/article/details/90231300