We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Set Background Image to table cell

Sorry Sabir,

Its working fine now.I had missed this line.

tbl.GetCell(0, 0).FillFormat.Type = FillType.Picture;

Hi Santhosh,

Try the code like this one.

Presentation pres = new Presentation();

Aspose.Slides.Picture pic = new Aspose.Slides.Picture(pres, "d:\\ppt\\ydn\\testpic.jpg");


int picid = pic.PictureId;

Slide sld= pres.GetSlideByPosition(1);

Aspose.Slides.Table tbl= sld.Shapes.AddTable(50, 100, 1500, 500, 3, 3);

tbl.GetCell(0, 0).FillFormat.Type = FillType.Picture;

tbl.GetCell(0, 0).FillFormat.PictureId = picid;