Return-Path: Delivered-To: apmail-jakarta-poi-user-archive@www.apache.org Received: (qmail 69654 invoked from network); 4 Jul 2006 05:25:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Jul 2006 05:25:34 -0000 Received: (qmail 96786 invoked by uid 500); 4 Jul 2006 05:25:33 -0000 Delivered-To: apmail-jakarta-poi-user-archive@jakarta.apache.org Received: (qmail 96369 invoked by uid 500); 4 Jul 2006 05:25:32 -0000 Mailing-List: contact poi-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "POI Users List" Reply-To: "POI Users List" Delivered-To: mailing list poi-user@jakarta.apache.org Received: (qmail 96358 invoked by uid 99); 4 Jul 2006 05:25:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 22:25:31 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jak-poi-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 22:25:30 -0700 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FxdPC-0004OO-6K for poi-user@jakarta.apache.org; Tue, 04 Jul 2006 07:25:02 +0200 Received: from bgl10-00-acns-ce1.cisco.com ([64.103.142.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jul 2006 07:25:02 +0200 Received: from chinnionline by bgl10-00-acns-ce1.cisco.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jul 2006 07:25:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: poi-user@jakarta.apache.org From: Kumar Subject: POI issue Date: Tue, 4 Jul 2006 05:17:51 +0000 (UTC) Lines: 61 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 64.103.142.30 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I am new to POI. I am trying out the sample examples that were given in POI site. I am getting the following error while opening the ppt file generated,just after executing the following program. Can anyone tell me what might be the problem was? Thanks in advance. Error:PowerPoint cant open the type of file represented by C:\Test\Presen.ppt And the java file is : public class PPTExample { public static void main(String ar[]){ try{ SlideShow ppt = new SlideShow(); HSSFWorkbook wb = new HSSFWorkbook(); Slide slide = ppt.createSlide(); //Line shape Line line = new Line(); line.setAnchor(new java.awt.Rectangle(50, 50, 100, 20)); line.setLineColor(new Color(0, 128, 0)); line.setLineStyle(Line.LineDashDotSys); slide.addShape(line); //TextBox TextBox txt = new TextBox(); txt.setText("Hello, World!"); txt.setAnchor(new java.awt.Rectangle(100, 100, 200, 50)); txt.setFontSize(32); txt.setFontName("Arial"); txt.setBold(true); slide.addShape(txt); //Autoshape //32-point star AutoShape sh1 = new AutoShape(ShapeTypes.Star32); sh1.setAnchor(new java.awt.Rectangle(50, 50, 100, 200)); sh1.setFillColor(Color.red); slide.addShape(sh1); //Trapezoid AutoShape sh2 = new AutoShape(ShapeTypes.Trapezoid); sh2.setAnchor(new java.awt.Rectangle(150, 150, 100, 200)); sh2.setFillColor(Color.blue); slide.addShape(sh2); FileOutputStream out = new FileOutputStream("C:/Test/Presen.ppt"); wb.write(out); out.close(); }catch(Exception e){ System.out.println("Exception = "+e); } } } --------------------------------------------------------------------- To unsubscribe, e-mail: poi-user-unsubscribe@jakarta.apache.org Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/