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

Free Support Forum - aspose.com

Preview PowerPoint2007 Documents crash!

Hi,

trying to preview a ppt 2007 produces this exception

"{"Invalid header signature; read 1688935826934608, expected 16220472316735377360"}"

at this line Presentation presentation = new Presentation(fileStream);

Cheers,

Dragos Raduc

Dear Dragos,

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for considering Aspose.Slides.

The code you pasted is for ppt presentations.

If it is pptx file, then you should use this code.

PresentationEx presentation = new PresentationEx(fileStream);