Unable to Convert PowerPoint Presentation from PPT to PPTX Format in C#

I am trying to convert the attached presentation from *.ppt format to *.pptx. Aspose.Slides create a *.pptx file, but when I open it with MS PowerPoint there is an error message: “PowerPoint found a problem with content in …”.

Code sample:

var pr = new Presentation(inPath);
pr.Save(outPath, SaveFormat.Pptx);

I use Aspose.Slides.dll 25.2.0.0 and Microsoft® PowerPoint® for Microsoft 365 MSO (Version 2501 Build 16.0.18429.20132) 64-bit.
test.zip (7.3 MB)

@licenses

It seems you are encountering an issue when converting a PowerPoint presentation from the PPT format to PPTX using Aspose.Slides. The error message you receive in Microsoft PowerPoint indicates that there may be a problem with the content of the converted file.

Here are a few steps you can take to troubleshoot and potentially resolve this issue:

  1. Check for Corruption in the Original PPT File: Ensure that the original PPT file is not corrupted. You can try opening it in PowerPoint to see if it functions correctly.

  2. Update Aspose.Slides: You are using version 25.2.0.0 of Aspose.Slides. Consider updating to the latest version, as newer releases often include bug fixes and improvements that may resolve your issue.

  3. Use Sample Code for Conversion: You can refer to the sample code provided in the Aspose documentation for converting PPT to PPTX. Here’s a basic example in C#:

    using Aspose.Slides;
    using Aspose.Slides.Export;
    
    namespace Aspose.Slides.Examples.CSharp.Presentations.Conversion
    {
        public class PPTtoPPTX
        {
            public static void Run()
            {
                // Path to the original PPT file
                string inPath = "path_to_your_file.ppt";
                // Path to save the converted PPTX file
                string outPath = "path_to_save_file.pptx";
    
                // Instantiate a Presentation object that represents a PPT file
                using (Presentation pres = new Presentation(inPath))
                {
                    // Saving the presentation to PPTX format
                    pres.Save(outPath, SaveFormat.Pptx);
                }
            }
        }
    }
    
  4. Test with Different PPT Files: Try converting different PPT files to see if the issue is specific to the file you are currently using.

  5. Contact Support: If the problem persists, consider reaching out to Aspose support with the problematic PPT file attached. They may be able to provide more specific guidance or identify any issues with the conversion process.

By following these steps, you should be able to identify the cause of the issue and find a suitable solution. If you have any further questions or need additional assistance, feel free to ask!

Sources:
[1]: PPTtoPPTX.cs
[2]: PPTtoPPTX.java

  1. Yes. I can open the original document in PowerPoint without any issues.
  2. I use the latest version of Aspose.Slides already.
  3. I use it already.
  4. Most of the other documents convert without corruption of data.
  5. Yes. I want the support to see this topic.

@licenses,
Thank you for reporting on the issue.I’ve reproduced the issue where a PowerPoint message appears when opening a PPTX file converted from the PPT file.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44857

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you found earlier (filed as SLIDESNET-44857) have been resolved in Aspose.Slides for .NET 25.3 (ZIP, MSI, NuGet, Cross-platform).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.