You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by "Havard, Nick" <ni...@savvis.net> on 2007/03/26 09:56:20 UTC

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

Posted by "Havard, Nick" <ni...@savvis.net>.
Hi

Bug 41946 has been created for this.

Thanks for your help.

Nick.

---------------------------------------------------------------------
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/


Re: PPT Error on Writing Presentation

Posted by Yegor Kozlov <ye...@dinom.ru>.
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: 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/