设置页边距 sheet.getSettings().setLeftMargin(0.5); 设置单元格内的数字以文本方式显示 WritableCellFormat b3c1 = new WritableCellFormat(wf,NumberFormats.TEXT);