The Output File Size Is Zero when a PowerPoint Presentation Is Saved in C#

Hi, Support:
Here report a fetal error for Aspose.slides.dll v21.3 Base on VS 2017,, Net 4.6.1.
Dim InputFile as string =“C:\Temp\Test.pptx”
Dim PPT as New Aspose.Slides.Presentation(InputFile )
Dim OutFile as string=“C:\Temp\Out.pptx”
on error resume next
PPT.Save(OutFile, Aspose.Slides.Export.SaveFormat.Pptx))
Dim Fs as long=Filelen(OutFile)
'Here Why Fs is 0?
A=Err.Number & " " & Err.Description
'Here Why the value of A is 5 Illegal characters in path.? But there is no illegal characters in path!

=====End Codes====
What’s wrong,how to fix it?

Thank you for contacting support.

Please test the problem you decribed with the latest version of Aspose.Slides if it is possible. If the issue persists, please share the following data:

  • input and output files
  • OS version on which the problem occurred

I Tested the dll v22.2 on VS2017, Win10 Home Edition, 4.6.1, the issue still on for any ppt file.

Another error is that the PPT.Save(OutFile, Global.Aspose.Slides.Export.SaveFormat.Pptx) method will be hanged, what’s wrong. Whereas PPT.Save(OutFile, Global.Aspose.Slides.Export.SaveFormat.Ppt) method is ok but the file size of outfile is still 0. What’s wrong?

111.png (47.3 KB)

Unfortunately, I was unable to reproduce the issues you described. Please share the following:

  • simple project that reproduces these problems
  • your input and output files

You can zip the files and upload the archive here.