Take the 2-minute tour ×

...for the enum Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

You actually can't get the file format, unfortunately. The best that can be done is to read the extention, like in this thread: How to obtain PowerPoint File Format Programmatically.

One other way is to use DSOFile to read the format.

share|improve this answer
That's is what i am using right now, but it is not fool proof... –  vdk May 29 '10 at 7:45
Yeah, the only other option I can see is to purposely try to kick errors against different formats to determine their format by deduction - it ain't pretty. –  Todd Main May 29 '10 at 16:32
add comment

Once the presentation is loaded it has no file format, only the internal memory structure. So from that POV it doesn't make sense to have the fileformat of the active presentation. That being said, using the extension is a horrible way to determine file format...though it's better than nothing. The best way is to "sniff" the file, as mentioned in the second answer here

share|improve this answer
add comment

Your Answer


