AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Leading Zeroes Dropping in Excel

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Thu May 17, 2007 8:33 pm    Post subject: Leading Zeroes Dropping in Excel Reply with quote



I am trying to export java data to Excel, but when I do, leading zeros
are being dropped. Aside from putting ( ' ) around the data, is
there a built in java function to handle this?
Back to top
Andrew Thompson
Guest





PostPosted: Fri May 18, 2007 6:36 am    Post subject: Re: Leading Zeroes Dropping in Excel Reply with quote



cgerhards (AT) gmail (DOT) com wrote:
Quote:
I am trying to export java data to Excel, but when I do, leading zeros
are being dropped. Aside from putting ( ' ) around the data, is
there a built in java function to handle this?

See java.text.NumberFormat.setMinimumIntegerDigits(int)

HTH

--
Andrew Thompson
http://www.athompson.info/andrew/

Message posted via http://www.javakb.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.