Which version of POI? Try the latest POI-3.5-beta4. If the bug still persists, create an issues in bugzilla, upload the template and sample code to reproduce the problem.
Yegor
Hello, I'm written a code sample which may copy a table from a SlideShow to another but I got the following exception:java.lang.ClassCastException: org.apache.poi.ddf.UnknownEscherRecord at org.apache.poi.hslf.model.Table.afterInsert(Table.java:122) at org.apache.poi.hslf.model.Sheet.addShape(Sheet.java:250) at IsofsSlidesMaker.createSlide(IsofsSlidesMaker.java:154) at IsofsSlidesMain.main(IsofsSlidesMain.java:10)Here is a part of the code sample :SlideShow ppt = new SlideShow(new HSLFSlideShow(templatePath)); Slide[] slides = ppt.getSlides(); Shape[] sh = slides[0].getShapes(); for (int j = 0; j < sh.length; j++) { if (sh[j] instanceof Table) { Table t = (Table)sh[j]; SlideShow pres = new SlideShow(new HSLFSlideShow(myNewPPT)); Slide[] shSlides = pres.getSlides(); Slide slide = shSlides[0]; // [...] slide.addShape(t); // HERE IS THE EXCEPTION pres.write(out); } }Can anyone help me with that ? Thanks Cheers BenoƮt --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
