We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Failed to save PPT file - Parameter is not valid

Hi there,
I’m using Aspose.Slides for NET to open and save PPT file back. With the attached sample sample.zip (421.6 KB)
There is an exception was thrown as following.

Parameter is not valid.
   at System.Drawing.Bitmap..ctor(Stream stream)
   at Aspose.Slides.   .(MemoryStream , Boolean , ?   )
   at Aspose.Slides.?? .vcxavvyzrkand973m8h2xubkc3dcpw86    ()
   at Aspose.Slides.?? .()
   at Aspose.Slides.?? .(UInt32 )
   at Aspose.Slides. ? . ()
   at Aspose.Slides. ? .()
   at Aspose.Slides. ? .(Stream , ISaveOptions )
   at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
   at Aspose.Slides.Presentation.Save(String fname, SaveFormat format)
   at TestThread.Program.Main(String[] args) in D:\TempProject\Test\TestThread\Program.cs:line 16

This issue occured when I upgrade to Aspose.Slides ver 20.7. But there is no exception when using Aspose.Slides ver 19.4.

The code snippet.

try
            {
                using(var presentation = new Presentation("sample.ppt"))
                {
                    presentation.Save("sample_out.ppt",
                                      Aspose.Slides.Export.SaveFormat.Ppt);
                    Console.WriteLine("Successfully");
                }
            }
            catch(Exception e)
            {
                Console.WriteLine(e.Message);
                Console.WriteLine(e.StackTrace);
                Console.WriteLine("Done");
            }
            Console.ReadKey();

Can you investigate this issue?
Thanks.

@dunghnguyen,

I have created an issue with ID SLIDESNET-42068 in our issue tracking system to further investigate and resolve the issue on our end. We will share the notification with you as soon as the issue will be fixed.

Hi @mudassir.fayyaz,
Thank for your support. There are some more sample for this issue. sample.zip (4.2 MB)

@dunghnguyen,

I have associated the information in our issue tracking system and will share feedback with you as soon as the issue will be fixed.

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