|
In the worksheet I am working with, column 0 is formatted as a General
type field.
I am attempting to use the following code to retreive the contents of
that column:
Item = %Trim(String_getBytes(HSSFCell_getStringCellValue(Cell)));
Where Item is a character field.
I am receiving the following error:
Message . . . . : Java exception received when calling Java
method.
Cause . . . . . : RPG procedure PROCESSSHE in program
QGPL/XL_UPDTEST
received Java exception "java.lang.NumberFormatException: You cannot
get a
string value from a numeric cell" when calling method
"getStringCellValue"
with signature "()Ljava.lang.String;" in
class
"org.apache.poi.hssf.usermodel.HSSFCell".
Since this is defined as General, and has both numeric and character
data in it, I do not understand why I am receiving this error.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.