> Copying of objects across slide shows is not supported by HSLF. You can either > use a template approach or create a new > table from scratch. I've resolved this problem creating table from scratch in fact.
>> Does anyone know if there is a way to allow : >> - multiple cells selection > > Do you mean merged cells? It is not yet supported. I mean selection of distinct cells but not merged... For example, in order to copy/paste a line while user uses PowerPoint. > Once a PPT table is created, it's structure is immutable. That means you can > specify the number of columns / rows only > when creating new tables and cannot add or delete columns or rows of existing > tables. However, you can modify the > content of table cells. For the two last points, is there an update which is coming or isn't it scheduled ? Thanks Regards Benoît Le 12/01/09 16:51, « Yegor Kozlov » <[email protected]> a écrit : >> Hello, >> >> First, thanks Yegor for your answer. >> I now use POI-3.5 but it does'nt seem possible to copy a Table from another >> slide show (manually created under Mac PowerPoint) >> > Copying of objects across slide shows is not supported by HSLF. You can either > use a template approach or create a new > table from scratch. > >> 2nd point : >> Does anyone know if there is a way to allow : >> - multiple cells selection > > Do you mean merged cells? It is not yet supported. > >> - line removal >> On tables created with POI-3.5 ? >> On the table I create, it is not (simple table with RichTextRun table cells >> ...) >> > > Once a PPT table is created, it's structure is immutable. That means you can > specify the number of columns / rows only > when creating new tables and cannot add or delete columns or rows of existing > tables. However, you can modify the > content of table cells. > > Yegor > > >> Thanks a lot >> Benoît >> >> >> Le 13/12/08 13:24, « Yegor Kozlov » <[email protected]> a écrit : >> >>> 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'v 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] >>> >>> >> >> >> --------------------------------------------------------------------- >> 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
