tags:

views:

102

answers:

2

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

+1  A: 

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.

Otaku
That's is what i am using right now, but it is not fool proof...
vdk
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.
Otaku
A: 

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

David Heise