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.