Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 784B2200ACA for ; Thu, 9 Jun 2016 18:55:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 76F85160A58; Thu, 9 Jun 2016 16:55:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BD2C2160A29 for ; Thu, 9 Jun 2016 18:55:22 +0200 (CEST) Received: (qmail 7802 invoked by uid 500); 9 Jun 2016 16:55:21 -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 7791 invoked by uid 99); 9 Jun 2016 16:55:21 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jun 2016 16:55:21 +0000 Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPS id A9E121A0146 for ; Thu, 9 Jun 2016 16:55:21 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id A84CF60518; Thu, 9 Jun 2016 16:55:20 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 59686] New: Error when trying to access XSLFTableCell properties like textHeight, lineWidth, etc. Date: Thu, 09 Jun 2016 16:55:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: XSLF X-Bugzilla-Version: 3.14-FINAL X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: prethaku@cisco.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Thu, 09 Jun 2016 16:55:23 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=59686 Bug ID: 59686 Summary: Error when trying to access XSLFTableCell properties like textHeight, lineWidth, etc. Product: POI Version: 3.14-FINAL Hardware: PC Status: NEW Severity: blocker Priority: P2 Component: XSLF Assignee: dev@poi.apache.org Reporter: prethaku@cisco.com Hi, I am generating a ppt from an existing template ppt file using XSLF. Here, I have a table and I update cells with the content dynamically and add/delete rows accordingly. I was trying to find the height of a cell/row so that I can find out how many rows can be accommodated in the table without overflowing the slide area. So if a row cannot be accommodated, a new slide will be created. But when I was trying to access cell.getTextHeight() or cell.getLineWidth(), I am getting the below exception. java.lang.IllegalStateException: CTShapeProperties was not found. at org.apache.poi.xslf.usermodel.XSLFShape.getSpPr(XSLFShape.java:240) at org.apache.poi.xslf.usermodel.XSLFSimpleShape$1.fetch(XSLFSimpleShape.java:113) at org.apache.poi.xslf.usermodel.XSLFShape.fetchShapeProperty(XSLFShape.java:320) at org.apache.poi.xslf.usermodel.XSLFSimpleShape.getXfrm(XSLFSimpleShape.java:121) at org.apache.poi.xslf.usermodel.XSLFSimpleShape.getAnchor(XSLFSimpleShape.java:128) at org.apache.poi.sl.draw.DrawShape.getAnchor(DrawShape.java:142) at org.apache.poi.sl.draw.DrawTextParagraph.getWrappingWidth(DrawTextParagraph.java:399) at org.apache.poi.sl.draw.DrawTextParagraph.breakText(DrawTextParagraph.java:240) at org.apache.poi.sl.draw.DrawTextShape.drawParagraphs(DrawTextShape.java:134) at org.apache.poi.sl.draw.DrawTextShape.getTextHeight(DrawTextShape.java:195) at org.apache.poi.sl.draw.DrawTextShape.getTextHeight(DrawTextShape.java:177) at org.apache.poi.xslf.usermodel.XSLFTextShape.getTextHeight(XSLFTextShape.java:536) ...... Please let me know if this is a bug or is implemented like that. And how can we find the dynamic height of a cell/row. Thanks, Preetam -- 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