CloneSlide


#1

Hello,

is it possible to set the [Serializable] Attribute to the Slide Class?

I have the problem that I have a lot of different slides in different presentations and want to store created slides in a database or to file - see below code:

Presentation presentation = new Presentation(filename);

Slide slide = presentation.Slides[0];

SaveBinaryData("slide.bin", slide);

--------------------

Presentation presentation = new Presentation(filename);

Slide slide = (Slide)LoadBinaryData("slide.bin");

presentation.CloneSlide(slide, presentation.Slides.LastSlidePosition);

Thanks.


#2

I’m affraid that is not possible.

Slides have many internal cross references to presentation, masters and

other structures and can’t be stored separately.



The best way is save it to separate presentations and store these ppt files to a database.