We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add slides from another presentation (merge 2/3 presentation together)

Thread ID:

Created:

Updated:

Platform:

Replies:

119378 Jun 12,2015 03:18 AM UTC Jun 12,2015 09:56 AM UTC ASP.NET Web Forms 1
loading
Tags: Presentation
Amish Patel
Asked On June 12, 2015 03:18 AM UTC

I cannot seem to get this to work.  I just want to take a list of PPTX files and output 1 presentation.

Works just fine if I comment out the for loop.

 //Creates a new instance of PowerPoint Presentation
                IPresentation presentation = Presentation.Create();
                BuildCover(presentation);
                foreach (var file in _files)
                {
                    if (!string.IsNullOrEmpty(file))
                    {
                        var libraryFileName = Server.MapPath("~//images//" + _clientFolder + "//" + file);
                        if (File.Exists(libraryFileName))
                        {
                            var p = Presentation.Open(libraryFileName);
                            foreach (var childSlide in p.Slides)
                            {
                                presentation.Slides.Add(childSlide);
                            }
                            //p.Close();
                        }
                    }
                }

                presentation.Save("SamplePresentation.pptx", FormatType.Pptx, Response);

Meikanda Nayanar [Syncfusion]
Replied On June 12, 2015 09:56 AM UTC

Hi Amish,
Thank you for your update.
We have checked the code snippet and attached documents. When merging slides from two different presentation documents, the master slides and themes used in those slides also must be cloned to the destination presentation document. This feature is not supported in product version 13.1.0.30.
The implementation for this feature “Cloning and merging slides” was completed and this will be available in our upcoming 2015 Volume 2 release which is expected to be available at the end of June 2015.
We could see that you have created a direct trac incident for the same query. We are requesting you to follow-up with that incident for further assistance on this. Please let us know if you have any questions.
Thanks,
Meikandan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;