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

Free Support Forum - aspose.com

Presentation can only load PowerPoint 97-2003 PPT/PPS presentations

Hi, we would try to generate a pdf file for our qm from a power point presentaion file (see attachement) but we get the error message by loading the file:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim pres As Aspose.Slides.Presentation = Nothing
Dim fn As String = “c:\temp\Teilnahmebescheinigung für Schüler.pptx”
pres = New Aspose.Slides.Presentation(fn, New Aspose.Slides.LoadOptions(Aspose.Slides.LoadFormat.Pptx))

Catch ex As Exception
End Try
pres.Save(“c:\temp\test.pdf”, Aspose.Slides.Export.SaveFormat.Pdf)

Process.Start(New ProcessStartInfo(“c:\temp\test.pdf”))

End Sub

Error message:

"Presentation can only load PowerPoint 97-2003 PPT/PPS presentations.
Parameter name: loadOptions"

Thanks for your help

Hi Marcel,

Thanks for your interest in Aspose.Slides.

I have observed the code snippet shared by you. You a re in fact trying to access the PPTX presentation using Presentation object. The Aspose.Slides namespace is only able to open the presentation files belonging to version 97-2003 (PPT, POT and PPTS). You need to use Aspose.Slides.Pptx namespace and use PresentationEx class to access the presentation format supported in PowerPoint 2007 and 2011. Please visit this documentation link for your further kind reference.

Many Thanks,