Free Support Forum - aspose.com

Picture in a Tablecell

Hello!


I am using aspose.powerpoint 1.4.8.0 for java.

Is it possible to add a Picture into a Tablecell?

A little example would be usefull.


thanks a lot

It’s not possible to insert Picture to a cell. MS PowerPoint doesn’t allow it too.
But you can fill cell’s background with any picture. Just set correct FillFormat properties.
Something like this:

Cell cell = table.getCell(0, 0);
cell.getFillFormat().setType(FillFormat.PICTURE);
cell.getFillFormat().setPictureId(picId);