Can you check that problem?
Exception Message:Internal cloning error: loaded document found. Path = "/ppt/charts/chartEx1.xml"
Template File:
Source Code:
- Code: Select all
using Spire.Presentation;
using System.Linq;
namespace PptxTesterPaidVersion
{
class Program
{
static void Main(string[] args)
{
ChartsCrashing();
}
private static void ChartsCrashing()
{
//Load template presentation
Presentation templatePresentation = new Presentation();
templatePresentation.LoadFromFile("template-charts.pptx");
//Create New Presentation
Spire.Presentation.Presentation presentation = new Spire.Presentation.Presentation();
presentation.Slides.RemoveAt(0);
//Get slide from template presentation. index:0
ISlide cloneSlide = templatePresentation.Slides.ToArray().ElementAtOrDefault(0);
//Append slide
presentation.Slides.Append(cloneSlide);
//Save and launch to view the PPTX document.
presentation.SaveToFile("ChartsCrashing.pptx", Spire.Presentation.FileFormat.Pptx2010);
}
}
}