Copy Shapes from one slide to another

Hello,

i have been using aspose at assette for a long time. i want to copy any shape from 1 slide to another. and this is what i did


MemoryStream strm=new MemoryStream();
_temppresentation.Slides[0].Shapes[0].Serialize(strm);
sd.Shapes.Add(strm);

but when i try that im getting the following error:
"Shape is abstract class and can’t be serialized"

this comes when i tried copying a table from another slide.

could you please provide a solution for this. i already saw in a previous thread that copying tables from 1 slide to another is not supported by a prior version of aspose. and that thread was dated back in 2007… i hope you have some fix for this issue. i try downloading the latest demo version from aspose and tried it and still we have the same problem.

regards,
Aneef


Dear Aneef,

You cannot serialize group shapes. If you want to move all shapes of the slide, then you can clone slide method.

Presentation.CloneSlide()