4

I need to insert shape(s) from presentation1 to presentation2. We can insert a slide like

pptApp.Presentations[Presentation2].Slides.InsertFromFile("presenation1", 10,2,2);

But I want only the shapes from Presentation1.slide(x) inserted to Presentation2.slide(y).

How can i Do this in C#? Please help me.

Thanks P2000

P2000
  • 101
  • 1
  • 4

1 Answers1

1
var origSlide = origPres.Slides[slideNum];
var destSlide = newPres.Slides[slideNum];
foreach (Shape origShape in origSlide.Shapes)
{
    origShape.Copy();
    newPres.Slides.Paste(slideNum);
}
stakx - no longer contributing
  • 83,039
  • 20
  • 168
  • 268
Arie Livshin
  • 865
  • 1
  • 12
  • 26