Lakshmi Prabha <lakshmipct <at> yahoo.com> writes: > > Hi, > sorry, I don't see any issue in your code given. > Anyhow, if you could give us the exact scenerio in > which the problem is coming, (where this is coded? > formats.add( ind, i.next() ); ) > and some sample data that you are trying to populate > in the date field, may be we get a solution. > Regards, > Lakshmi
Hi, sorry for my ambiguity. Let me try to clarify it. The problem I have is that if you try to run the program I posted more than once, you may find that ONLY the cell in the first row will be formatted. If you take a look at the "format index" printed out in the console, the "format index" printed out at the first trial is different from the latter ones. The code below is the source code of the class HSSFDataFormat which I think it may be the cause of my problem. at HSSFDataFormat.getFormat(String)line:235 formats.add( ind, i.next() ); Some folks had similar problem but no solution is provided. http://mail-archives.apache.org/mod_mbox/jakarta-poi-user/200403.mbox/% [EMAIL PROTECTED] Regards, Sancho Chiang --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
