Is it possible to convert jxl LabelCell to jxl NumberCell somehow?
+1
A:
If you have a labelCell
, you can try the following snippet to create a NumberCell
:
NumberCell numberCell = new Number(labelCell.getColumn(),
labelCell.getRow(),
Double.parseDouble(labelCell.getContents()));
dogbane
2010-10-14 07:56:38
I still get java.lang.ClassCastException: jxl.read.biff.LabelSSTRecord cannot be cast to jxl.NumberCell
jaana
2010-10-14 08:56:21
Did you use my code? I'm not doing any casting. I'm creating a new NumberCell using properties from the LabelCell.
dogbane
2010-10-14 09:03:56