Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 64370 invoked from network); 24 Feb 2009 15:02:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Feb 2009 15:02:48 -0000 Received: (qmail 84899 invoked by uid 500); 24 Feb 2009 15:02:47 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 84799 invoked by uid 500); 24 Feb 2009 15:02:46 -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 84788 invoked by uid 99); 24 Feb 2009 15:02:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Feb 2009 07:02:46 -0800 X-ASF-Spam-Status: No, hits=3.1 required=10.0 tests=DNS_FROM_OPENWHOIS,FROM_LOCAL_NOVOWEL,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Tue, 24 Feb 2009 15:02:39 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lbyna-0004yc-Qy for user@poi.apache.org; Tue, 24 Feb 2009 07:02:18 -0800 Message-ID: <22181073.post@talk.nabble.com> Date: Tue, 24 Feb 2009 07:02:18 -0800 (PST) From: MSB To: user@poi.apache.org Subject: Re: Formula value contains a link - not reading properly In-Reply-To: <22165667.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: markbrdsly@tiscali.co.uk References: <22165667.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org The first thing that springs to mind could be character encodings? Secondly= , it could be that you are encoutering problems with forbidden characters in file or folder names - I know that the [ and ] characters are disallowed in Windows for example - though why this would cause what you are seeing I do not know. Finally, have you tried calling the getStringCellValue() method just to see what that returns? I know that you are dealing with a formula cell but it would be interesting to see what the outcome is. Aside from that, I am stumped, sorry. brianireland wrote: >=20 > Reading a cell formula value that includes a link to another excel file, > very common=20 > for most of the excel files I work with, causes unusual returned string.= =20 >=20 > e.g. Excel cell contains the following formula:=20 > =3D'C:\[poiTest.xls]HSSF Test'!$A$6 >=20 > Read the formula value using POI 3.5 beta, print it to Eclipse console, > get:=20 > '[=02poiTest.xls]HSSF Test'!$A$6 >=20 > The C:\[ appears to be replaced with a square bracket and a little square > (dont know what it is).=20 >=20 > Code used is:=20 > =09=09=09=09=09=09=09=09=09=09 > String formulaString =3D cell.getCellFormula(); > System.out.println ("String value: " + formulaString); >=20 > Any help appreciated.=20 >=20 > Brian >=20 --=20 View this message in context: http://www.nabble.com/Formula-value-contains-= a-link---not-reading-properly-tp22165667p22181073.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