You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by prashanth bhat <pr...@yahoo.com> on 2006/10/26 09:04:33 UTC

error while copying the slides to a presentation

when i run the following code:

i am copying all slides in Template for ppt update.ppt
to Template for ppt update2

HSLFSlideShow ss = new HSLFSlideShow("Template for ppt
update.ppt");

HSSFWorkbook wb = new HSSFWorkbook();
    SlideShow ppt = new SlideShow(ss);

	 //retrieve page size. Coordinates are expressed in
points (72 dpi)
    java.awt.Dimension pgsize = ppt.getPageSize();
    int pgx = pgsize.width; //slide width
    int pgy = pgsize.height; //slide height

    //set new page size
    ppt.setPageSize(new java.awt.Dimension(1024,
768));

   FileOutputStream out = new
FileOutputStream("Template for ppt update.ppt");
    ppt.write(out);
   out.close();

i get the following error

No core record found with ID 4 based on PersistPtr
lookup
Wrote property set ¢ÀSummaryInformation of size 21076
Wrote property set ¢ÀDocumentSummaryInformation of
size 980
Couldn't find the new location of the "slide" with id
176 that used to be at 214
35
Not updating the position of it, you probably won't be
able to find it any more
(if you ever could!)

and the powerpoint is not generated properly.

please help me fix this.

also, since tables cannot be created in poi please
suggest an alternative code to create a table using
poi in ppt.

thanks,
prashanth


Effort is important, but knowing where to make an effort in your life makes all the difference

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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