Macros are lost when saving presentation as PPTM (C# .NET)


We have a file in format PPTM (with macros).
When we save it as PPTM we lost some functionalities

Aspose.Slides version :

All the explantions are in the document “Explanations_Aspose_Presentation.docx” in the zip file.

Thanks. (591.8 KB)


I have observed the issue shared and request you to please try using latest Aspose.Slides for 20.1 on your end. In case there is still an issue then please provide the sample code used on your end. We will be able to log the issue in our issue tracking system on provision of requested information.


I try with Version 20.1. and there is still an issue.

Here is the code. Thanks.

public class SaveToFile
    public static void Run()
        // The path to the documents directory.
        string dataDir = RunExamples.GetDataDir_PresentationSaving();

        // Create directory if it is not already present.
        bool IsExists = System.IO.Directory.Exists(dataDir);
        if (!IsExists)

        string inputFile = dataDir + "OriginalDocument.pptm";
        string outputFile = dataDir + "OutputDocumentWithAspose.pptm";

        // Instantiate a Presentation object that represents a PPT file
        Presentation presentation = new Presentation(inputFile);

        // some work here...

        // Save your presentation to a file
        presentation.Save(outputFile, Aspose.Slides.Export.SaveFormat.Pptm);


Thank you for sharing further information with us. An issue with ID SLIDESNET-41765 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as SLIDESNET-41765) have been fixed in this update.