Thanks for the fast reply.
So is there a way to get the user-defined format from the spreadsheet using the API?
Andre
On Tue, Jun 10, 2008 at 12:58 PM, Bill Seddon < bill.seddo
n
lyquidity.com">bill.seddon
lyquidity.com> wrote:
Andre
The API returns the type based on the record type Excel saves.
The format you choose to display the number has no bearing on how Excel will
save a numeric value.
I think this is a bug on jexcelapi.
I set this particular cell to be of the type Text on an excel spreadsheet
(right click -> Format Cell -> Text). The value of this cell is
"2"
In my code, when I use the method Cell.getType() for this cell, the type I get
is Number.
I also tested this setting the format to General. The result of getType was
also Number.
It seems that the API is getting the type of the cell based on the contents and
not the format. Is there a way around this?
Thanks,
Andre
.