File tree 2 files changed +4
-2
lines changed
gxoffice/src/main/java/com/genexus/gxoffice/poi
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 18
18
import com .genexus .CommonUtil ;
19
19
import com .genexus .gxoffice .IExcelCells ;
20
20
import com .genexus .gxoffice .IGxError ;
21
+ import org .apache .poi .ss .util .NumberToTextConverter ;
21
22
22
23
/**
23
24
* @author Diego
@@ -209,7 +210,7 @@ else if (pCells[1].getCellType() == CellType.NUMERIC) {
209
210
if (DateUtil .isCellDateFormatted (pCells [1 ])) {
210
211
return pCells [1 ].getDateCellValue ().toString ();
211
212
} else {
212
- return Double . toString (pCells [1 ].getNumericCellValue ());
213
+ return NumberToTextConverter . toText (pCells [1 ].getNumericCellValue ());
213
214
}
214
215
} else
215
216
return pCells [1 ].getStringCellValue ();
Original file line number Diff line number Diff line change 13
13
import org .apache .poi .ss .usermodel .Font ;
14
14
import org .apache .poi .ss .usermodel .Row ;
15
15
import org .apache .poi .ss .usermodel .Workbook ;
16
+ import org .apache .poi .ss .util .NumberToTextConverter ;
16
17
import org .apache .poi .xssf .usermodel .XSSFCell ;
17
18
import org .apache .poi .xssf .usermodel .XSSFColor ;
18
19
import org .apache .poi .xssf .usermodel .XSSFFont ;
@@ -209,7 +210,7 @@ else if (pCells[1].getCellType() == CellType.NUMERIC) {
209
210
if (org .apache .poi .ss .usermodel .DateUtil .isCellDateFormatted (pCells [1 ])) {
210
211
return pCells [1 ].getDateCellValue ().toString ();
211
212
} else {
212
- return Double . toString (pCells [1 ].getNumericCellValue ());
213
+ return NumberToTextConverter . toText (pCells [1 ].getNumericCellValue ());
213
214
}
214
215
} else
215
216
return pCells [1 ].getStringCellValue ();
You can’t perform that action at this time.
0 commit comments