This is due to the fact that the poi-ooxml-schemas is missing some classes
needed to add text to tables in PPT files. Instead you need to remove that
one from your libraries and use the ooxml-schemas-1.1.jar. See:
http://poi.apache.org/overview.html and
http://repo.maven.apache.org/maven2/org/apache/poi/ooxml-schemas/1.1/.

2014-09-16 9:50 GMT+02:00 sailaja Nagarabettu <[email protected]>:

> Hi All,
>
> I am facing a issue to modify the exisiting table cell value. I have used
> below lines to change the exisiting table cell value bit its not getting
> reflected in the ppt.
>
> *if*
>
> (sh[j] *instanceof* Table){ //got a table
>
> Table table1 = (Table)sh[j];
>
> cell = table1.getCell(0,1);
>
> cell.setText(
>
> "hello");
>
> }
>
> When i open the ppt & check the slide the table cell value is shown as
> blank instead of hello. Even i tried the below line but it gives exception.
> Please let me know how i can modify the table cell so that it gets
> reflected in the output ppt.
>
> *slide.addShape(table1);*
>
> *java.lang.ClassCastException*
>
> : org.apache.poi.ddf.EscherTertiaryOptRecord incompatible with
> org.apache.poi.ddf.EscherOptRecord
>

Reply via email to