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)
2nd point :
Does anyone know if there is a way to allow :
- multiple cells selection
- line removal
On tables created with POI-3.5 ?
On the table I create, it is not (simple table with RichTextRun table cells
...)
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]