poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Bittard" <julien.bitt...@unilog.logicacmg.com>
Subject RE: Troubleshooting with number format
Date Fri, 02 Jun 2006 14:06:56 GMT
Yes I know, and I find my mistake : I use the POI 1.5.1, and with the the
version 2.5, I don't have the problem.

Thanks for your response.

-----Message d'origine-----
De : Natu, Ashlesha [IT] [mailto:ashlesha.natu@citigroup.com]
Envoyé : ven. 2 juin 2006 15:50
À : POI Users List; julien.bittard@unilog.logicacmg.com
Objet : RE: Troubleshooting with number format


I am not quite sure what you are trying to do. But when you write a numeric
value to an excel sheet, you have to set its type explicitly like:

HSFCell cell = row.createCell((short)0);

When you read it use:

HSSFCell c0 = r0.getCell((short)0);
int i = c0.getNumericCellValue();


-----Original Message-----
From: Julien Bittard [mailto:julien.bittard@unilog.logicacmg.com]
Sent: Friday, June 02, 2006 5:56 AM
To: Poi-User
Subject: Troubleshooting with number format


In my web application, I created a Excel file with POI which contains
Numeric cells. When I export this file in MS EXCel (2000 or 2003), there is
a message on open : "Erreur de fichier. Certains formats de nombre ont
peut-être été perdus."  = Perhaps certain number formats were lost.

Have you an idea ?


This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.

To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org
Mailing List:     http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project:  http://jakarta.apache.org/poi/

View raw message