Return-Path: Delivered-To: apmail-poi-user-archive@www.apache.org Received: (qmail 99455 invoked from network); 8 Oct 2008 09:49:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Oct 2008 09:49:21 -0000 Received: (qmail 88700 invoked by uid 500); 8 Oct 2008 09:49:19 -0000 Delivered-To: apmail-poi-user-archive@poi.apache.org Received: (qmail 88676 invoked by uid 500); 8 Oct 2008 09:49:18 -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 88665 invoked by uid 99); 8 Oct 2008 09:49:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 02:49:18 -0700 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=DNS_FROM_SECURITYSAGE,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of huffie@hotmail.com designates 65.54.246.90 as permitted sender) Received: from [65.54.246.90] (HELO bay0-omc1-s18.bay0.hotmail.com) (65.54.246.90) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Oct 2008 09:48:13 +0000 Received: from BAY131-W30 ([65.55.136.65]) by bay0-omc1-s18.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 8 Oct 2008 02:48:27 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_72440880-d70b-49cd-ae8f-7e8241cef653_" X-Originating-IP: [58.185.249.106] From: Huffie Huff To: Subject: HSLF with PPT2003 & PPT2007 Date: Wed, 8 Oct 2008 17:48:27 +0800 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 08 Oct 2008 09:48:27.0475 (UTC) FILETIME=[036FA230:01C9292B] X-Virus-Checked: Checked by ClamAV on apache.org --_72440880-d70b-49cd-ae8f-7e8241cef653_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 8bit Hi, Recently I wrote an app creating tables in PPT slide and everything looks fine in PPT2003. However, when the file was opened with PPT2007 it seems that the column width, row height are incorrect. Anyone has experienced this? Next, I decided to try generate the slide with table into an image using the following codes BufferedImage img = new BufferedImage(slide.getSlideShow().getPageSize().width, slide.getSlideShow().getPageSize().height, BufferedImage.TYPE_INT_RGB); Graphics2D graphics = img.createGraphics(); graphics.setPaint(Color.white); graphics.fill(new Rectangle2D.Float(0, 0, slide.getSlideShow().getPageSize().width, slide.getSlideShow().getPageSize().height)); slide.draw(graphics); <---Exception line I got Exception in thread "main" java.lang.ClassCastException: org.apache.poi.ddf.EscherOptRecord . Can someone help me out? Thanks. _________________________________________________________________ Join the Fantasy Football club and win cash prizes here! http://fantasyfootball.sg.msn.com --_72440880-d70b-49cd-ae8f-7e8241cef653_--