Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 43242 invoked from network); 22 Dec 2008 16:48:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Dec 2008 16:48:40 -0000 Received: (qmail 64252 invoked by uid 500); 22 Dec 2008 16:48:38 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 64238 invoked by uid 500); 22 Dec 2008 16:48:38 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 64227 invoked by uid 99); 22 Dec 2008 16:48:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2008 08:48:38 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Dec 2008 16:48:29 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LEnwv-0002jq-7f for user@poi.apache.org; Mon, 22 Dec 2008 08:48:09 -0800 Message-ID: <21130946.post@talk.nabble.com> Date: Mon, 22 Dec 2008 08:48:09 -0800 (PST) From: noobguru To: user@poi.apache.org Subject: RE: reading excel - can I get column format? In-Reply-To: <21130846.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: noobguru@gmail.com References: <21099031.post@talk.nabble.com> <21129971.post@talk.nabble.com> <349478.64062.qm@web36601.mail.mud.yahoo.com> <21130846.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Also, there may or may not be data in the excel sheet at all. I just format the columns (by excel) and then put data in there accordingly (using hssf or whatever classes). But I need to know the formatting of the columns in order to put data in the excel sheet. noobguru wrote: > > I set the columns in the excel file using Excel. Now I'm trying to read > those formats from the excel file using the libraries given so that I take > a text file (with data in it) and place it in the appropriate columns. > > > Anthony Andrews wrote: >> >> Forgive me asking this as I am a couple of version behind at the moment >> but did you set the format of the column using HSSF or Excel? >> >> --- On Mon, 12/22/08, noobguru wrote: >> From: noobguru >> Subject: RE: reading excel - can I get column format? >> To: user@poi.apache.org >> Date: Monday, December 22, 2008, 7:50 AM >> >> Thanks Joe, >> >> But I formatted the entire column to one format. So is there anyway >> to >> get that format? >> >> noobguru >> >> HSSFCell cell = ci.next(); >> if (cell.getCellType() == cell.CELL_TYPE_STRING) >> s = s+cell.getRichStringCellValue(); >> >> -----Original Message----- >> From: noobguru [mailto:noobguru@gmail.com] >> Sent: Friday, December 19, 2008 5:11 PM >> To: user@poi.apache.org >> Subject: reading excel - can I get column format? >> >> >> I've tried looking in the apache poi documentation as well as this >> forum, >> however, I couldn't find if it was possible to get the format of a >> column in >> a 2007 excel file. Is this possible at all? (e.g. whether a column is a >> Number, String, Date, etc). >> >> If this is not possible, is there a way to get the format of a cell that >> has >> no data in it? (e.g. whether this cell is formatted as a Number, String, >> Date, etc). >> >> Thanks in advance! >> ~noobguru >> -- >> View this message in context: >> http://www.nabble.com/reading-excel---can-I-get-column-format--tp2109903 >> 1p21099031.html >> Sent from the POI - User mailing list archive at Nabble.com. >> >> >> -- >> View this message in context: >> http://www.nabble.com/reading-excel---can-I-get-column-format--tp21099031p21129971.html >> Sent from the POI - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org >> For additional commands, e-mail: user-help@poi.apache.org >> >> >> >> >> >> > > -- View this message in context: http://www.nabble.com/reading-excel---can-I-get-column-format--tp21099031p21130946.html Sent from the POI - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org