...for the enum Microsoft.Office.Interop.PowerPoint.PpSaveAsFileType
?
views:
102answers:
2
+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
2010-05-28 23:39:28
That's is what i am using right now, but it is not fool proof...
vdk
2010-05-29 07:45:49
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
2010-05-29 16:32:59
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
2010-06-04 15:41:52