PPT Error on Writing Presentation
Hi I am working with POI to manage some powerpoint presentations. A simple test, is giving me the following strange error. === Couldn't find the new location of the slide with id 223 that used to be at 19389 Not updating the position of it, you probably won't be able to find it any more (if you ever could!) === The code I am using is simply reading an existing ppt presentation and wrting it back out as a new file. To read file in. SlideShow ppt = null; ppt = new SlideShow(new HSLFSlideShow(c:\\files\nh.ppt)); To write file back out. FileOutputStream fos = new FileOutputStream(c:\\files\\njh.ppt); ppt.write(fos); fos.close(); The ppt that is being read in (nh.ppt), use to be a much larger ppt which I have trimmed down for the purposes of development and testing. The ppt has a single master slide (with title master) and three presentation slides. Is it likely that there are references to some of the deleted slides in the presentation hanging around. How can I work around this issue as its quite urgent to sort out? I am using a version of POI that I compiled myself from source downloaded from the subversion repository. Thanks for your help. Nick Havard
Re: PPT Error on Writing Presentation
Create a bug in bugzilla and attach the ppt. We already had similar issues. So far we considered them as anomalies that are rare to happen. But now I'm inclined to think it's normal. Attach the file and we will see what can be done. Regards, Yegor HN Hi HN I am working with POI to manage some powerpoint presentations. A simple HN test, is giving me the following strange error. HN === HN Couldn't find the new location of the slide with id 223 that used to HN be at 19389 HN Not updating the position of it, you probably won't be able to find it HN any more (if you ever could!) HN === HN The code I am using is simply reading an existing ppt presentation and HN wrting it back out as a new file. HN To read file in. HN SlideShow ppt = null; HN ppt = new SlideShow(new HSLFSlideShow(c:\\files\nh.ppt)); HN To write file back out. HN FileOutputStream fos = new FileOutputStream(c:\\files\\njh.ppt); HN ppt.write(fos); HN fos.close(); HN The ppt that is being read in (nh.ppt), use to be a much larger ppt HN which I have trimmed down for the purposes of development and testing. HN The ppt has a single master slide (with title master) and three HN presentation slides. Is it likely that there are references to some of HN the deleted slides in the presentation hanging around. How can I work HN around this issue as its quite urgent to sort out? HN I am using a version of POI that I compiled myself from source HN downloaded from the subversion repository. HN Thanks for your help. HN Nick Havard - To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
Re: POI and Powerpoint Tables
Hi, Tables are not yet supported. I hope to implement it during this year. If it is now possible, is it simply a matter of creating a ShapeGroup and adding TextBox's at the appropriate grid coordinate. You can do it, but PPT won't recognize this group of shapes as Table. Table is a complex container containing special records. Regards, Yegor HN Hi HN Whilst searching the archives, I came across the following HN http://mail-archives.apache.org/mod_mbox/jakarta-poi-user/200608.mbox/%3 HN [EMAIL PROTECTED] which says creating tables is HN not yet supported. Give the age of the message (8 months), is creating HN tables now supported. HN If it is now possible, is it simply a matter of creating a ShapeGroup HN and adding TextBox's at the appropriate grid coordinate. HN Due to a bug I was hitting I have dowloaded and built the latest version HN of the jar files, and am not using the downloadable jar's. HN Thanks for your help. HN Nick Havard - To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/
RE: PPT Error on Writing Presentation
Hi Bug 41946 has been created for this. Thanks for your help. Nick. - To unsubscribe, e-mail: [EMAIL PROTECTED] Mailing List: http://jakarta.apache.org/site/mail2.html#poi The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/