I’m using Aspose Slides 18.104.22.168 to try to reload a ppt file after saving it, but when I do that, exception was thrown with 2 types of exception: " Value cannot be null.\r\nParameter name: key"" and “object reference not set to an instance of an object”.
My sample code:
FileStream fStream = new FileStream(original_ppt_file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); fStream.Seek(0, SeekOrigin.Begin); Presentation presentation= new Presentation(fStream); presentation.Save(temp_file, SaveFormat.Ppt); fStream = null; fStream = new FileStream(temp_file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite); fStream.Seek(0, SeekOrigin.Begin); presentation= new Presentation(fStream);
The exception will be thrown when I try to re-load the temp file using presentation.
I tried to upgrade Aspose Slides to lastest version: 22.214.171.124 but the issue still be there.
Here is my sample: sample.zip (3.8 MB)
Please check and give me some advices.
Dung H. Nguyen