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

Hi,

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

Aspose.Slides version : 19.12.0.0

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

Thanks.

elements.zip (591.8 KB)

@julien.mevel.isilog,

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.

Hi,

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

Here is the code. Thanks.

public class SaveToFile
{
    public static void Run()
    {
        //ExStart:SaveToFile
        // 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)
            System.IO.Directory.CreateDirectory(dataDir);

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

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

        //...do some work here...

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

@julien.mevel.isilog,

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.