Preview PowerPoint2007 Documents crash!


trying to preview a ppt 2007 produces this exception

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

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


Dragos Raduc

Dear Dragos,

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);