当我们通过POI设置了表格的列宽的时候,如果文字过长,希望文字能够自己折行显示. 截取代码如下: Workbook wb = new XSSFWorkbook(); //or new HSSFWorkbook(); Sheet sheet = wb.createSheet(); Row row = sheet.createRow(2); Cell cell = row.createCell(2); cell.setCellValue("Use \n with word wrap on to cr
FORM set_style USING fieldname style TYPE string CHANGING it_styles TYPE lvc_t_styl. DATA: ls_style TYPE lvc_s_styl. CLEAR ls_style. ls_style-fieldname = fieldname. IF style EQ 'ENABLE'. ls_style-s