0
Excelを作成しようとすると、その中にいくつかの値がありますが、このエラーが発生します。 Priceeは前にdoubleとして定義されています。私は値が正しいことを確認した。私はどこを見るか分からない?POIフォーマットエラーXPages
cell = row.createCell(6);
setCellStyle();
cell.setCellType(Cell.CELL_TYPE_NUMERIC); cellStyle.setDataFormat(createHelper.createDataFormat().getFormat("#,##0.00"));
cell.setCellValue(pricee);
ERROR:
com.ibm.jscript.InterpretException: Script interpreter error, line=1329, col=35: Ambiguity when calling setDataFormat(int) and setDataFormat(short)
この質問を見る:https://stackoverflow.com/questions/15087998/formatting-number-via-java-text-decimalformat-always-returns-error-in-ssjs –