File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
gxoffice/src/main/java/com/genexus/gxoffice/poi Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1818import com .genexus .CommonUtil ;
1919import com .genexus .gxoffice .IExcelCells ;
2020import com .genexus .gxoffice .IGxError ;
21+ import org .apache .poi .ss .util .NumberToTextConverter ;
2122
2223/**
2324 * @author Diego
@@ -209,7 +210,7 @@ else if (pCells[1].getCellType() == CellType.NUMERIC) {
209210 if (DateUtil .isCellDateFormatted (pCells [1 ])) {
210211 return pCells [1 ].getDateCellValue ().toString ();
211212 } else {
212- return Double . toString (pCells [1 ].getNumericCellValue ());
213+ return NumberToTextConverter . toText (pCells [1 ].getNumericCellValue ());
213214 }
214215 } else
215216 return pCells [1 ].getStringCellValue ();
Original file line number Diff line number Diff line change 1313import org .apache .poi .ss .usermodel .Font ;
1414import org .apache .poi .ss .usermodel .Row ;
1515import org .apache .poi .ss .usermodel .Workbook ;
16+ import org .apache .poi .ss .util .NumberToTextConverter ;
1617import org .apache .poi .xssf .usermodel .XSSFCell ;
1718import org .apache .poi .xssf .usermodel .XSSFColor ;
1819import org .apache .poi .xssf .usermodel .XSSFFont ;
@@ -209,7 +210,7 @@ else if (pCells[1].getCellType() == CellType.NUMERIC) {
209210 if (org .apache .poi .ss .usermodel .DateUtil .isCellDateFormatted (pCells [1 ])) {
210211 return pCells [1 ].getDateCellValue ().toString ();
211212 } else {
212- return Double . toString (pCells [1 ].getNumericCellValue ());
213+ return NumberToTextConverter . toText (pCells [1 ].getNumericCellValue ());
213214 }
214215 } else
215216 return pCells [1 ].getStringCellValue ();
You can’t perform that action at this time.
0 commit comments