Hello,
I am encountering an issue when trying to save a PowerPoint presentation with more than 200 slides using Spire.Presentation. The following exception is thrown:
System.ArgumentException: 'item has already been added. key in dictionary'
This exception occurs at the point of saving the file. Below is a code snippet that demonstrates the problem:
if (_saveSlides && !cancelInd)
{
Spire.Presentation.Presentation pptxDoc = new();
pptxDoc.LoadFromFile(_savepptName);
AddSlides(_saveTerrs, _saveViews, _saveFolder,
_savepptHeader, pptxDoc, _savepptMapPtLeft, _savepptMapPtTop, _savepptMapPtWidth,
_savepptMapPtHeight, _savepptCrop, _savepptShpnumTitle, _savepptShpnumMap);
pptxDoc.DocumentProperty["_MarkAsFinal"] = true;
pptxDoc.SaveToFile(_savepptFinalName, FileFormat.Auto);
}