Hi Team,
I have attached two pptx files (source and destination). I would like to write a code in Aspose.Slides which will replicate the operation of copying both the slides from the destination file to the source file and use the destination theme. I am using 7.1 and I know this is an old legacy api. But please help me out with the coding. I am not in a position to purchase the new license. I have tried to write the code but it is throwing an exception. Below is what I tried.
Aspose.Slides.License license = new Aspose.Slides.License();
license.SetLicense("Aspose.Total.lic");
PresentationEx source = new PresentationEx(@"C:\Sample Projects\formatPPT\formatPPT\Working\sourceSlide.pptx");
PresentationEx dest = new PresentationEx(@"C:\Sample Projects\formatPPT\formatPPT\Working\destSlide.pptx");
SlideEx destSlide = dest.Slides[0];
SlideExCollection slds = dest.Slides;
MasterSlideEx SourceMaster = destSlide.LayoutSlide.MasterSlide;
slds.AddClone(source.Slides[0], SourceMaster);
dest.Write(@"C:\Sample Projects\formatPPT\formatPPT\Working\Results\master.pptx");
Please help me out here.
Regards,
Nilotpal