您好,请问您经过上述方式设置后,目前导出结果是什么呢?我这边测试结果是好的,以下是测试代码和结果对比
- Workbook workbook = new Workbook();
- workbook.open("FUNDXXXX_XX基金_科目余额表_YYYYMM.xlsx");
- IWorksheet worksheet = workbook.getWorksheets().get(0);
- worksheet.getRange(3, 0).setValue("1234");
- worksheet.getRange(3, 1).setValue("1234567890");
- worksheet.getRange(3, 2).setValue("1234567890");
- worksheet.getRange(3, 3).setValue("1234567890");
- worksheet.getRange(3, 4).setValue("人民币");
- worksheet.getRange(3, 5).setValue(566756.66);
- worksheet.getRange(3, 6).setValue(346482.66);
- worksheet.getRange(3, 7).setValue(12);
- worksheet.getRange(3, 8).setValue(0);
- worksheet.getRange(3, 9).setValue(0);
- worksheet.getRange(3, 10).setValue(0);
- worksheet.getRange(3, 11).setValue(0);
- worksheet.getRange(3, 12).setValue(0);
- worksheet.getRange(3, 13).setValue(23564434.53);
- worksheet.getRange(3, 14).setValue(254564245.2);
- worksheet.getRange(3, 15).setValue(23524624.35);
- worksheet.getRange(3, 16).setValue(245246356.43);
- worksheet.getRange(3, 17).setValue(245624635.66);
- worksheet.getRange(3, 18).setValue(46346377.66);
- worksheet.getRange(3, 19).setValue(0);
- worksheet.getRange(3, 20).setValue(0);
- worksheet.getUsedRange().autoFit();
- workbook.save("结果1.xlsx", SaveFileFormat.Xlsx);
- worksheet.getRange(3,0,1, 21).getFont().setName("楷体");
- worksheet.getUsedRange().autoFit();
- workbook.save("结果2.xlsx", SaveFileFormat.Xlsx);
复制代码
|