Return-Path: Delivered-To: apmail-poi-dev-archive@www.apache.org Received: (qmail 98721 invoked from network); 29 Nov 2008 02:13:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Nov 2008 02:13:46 -0000 Received: (qmail 78543 invoked by uid 500); 29 Nov 2008 02:13:57 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 78515 invoked by uid 500); 29 Nov 2008 02:13:57 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 78504 invoked by uid 99); 29 Nov 2008 02:13:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Nov 2008 18:13:57 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Nov 2008 02:12:38 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 2A8CA234C296; Fri, 28 Nov 2008 18:12:55 -0800 (PST) From: bugzilla@apache.org To: dev@poi.apache.org Subject: DO NOT REPLY [Bug 46259] HSSFCellStyle.getUserStyleName() returns null X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HSSF X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: josh@gildedtree.com X-Bugzilla-Status: NEEDINFO X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Message-Id: <20081129021255.2A8CA234C296@brutus.apache.org> Date: Fri, 28 Nov 2008 18:12:55 -0800 (PST) X-Virus-Checked: Checked by ClamAV on apache.org https://issues.apache.org/bugzilla/show_bug.cgi?id=46259 Josh Micich changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO --- Comment #2 from Josh Micich 2008-11-28 18:12:54 PST --- Is it possible that you need to go one level up with 'getParentStyle()'? The following code seems to work (I am not sure if it all makes sense though): URL url = new URL("https://issues.apache.org/bugzilla/attachment.cgi?id=22909"); HttpURLConnection hconn = (HttpURLConnection) url.openConnection(); HSSFWorkbook wb = new HSSFWorkbook(hconn.getInputStream()); HSSFSheet sheet = wb.getSheetAt(0); HSSFCellStyle cellStyleA1 = sheet.getRow(0).getCell(0).getCellStyle(); HSSFCellStyle cellStyleA2 = sheet.getRow(1).getCell(0).getCellStyle(); assertEquals("style1", cellStyleA1.getParentStyle().getUserStyleName()); assertEquals("style2", cellStyleA2.getParentStyle().getUserStyleName()); -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org