I'm getting error "The node to be removed is not a child of this node."
Why is that so?
I use pptx 2016 to create the template.
This is my code
Presentation presentation = new Presentation();
presentation.LoadFromFile(templatePath);
Presentation presentation2 = new Presentation();
ISlide slide = presentation.Slides[0];
ReplaceTags(slide, "{{ReportName}}", ReportName);
presentation2.Slides.Insert(1, slide); <--- Exception happen here, if page contains a table
Please advise