2

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

Todd Main
  • 28,951
  • 11
  • 82
  • 146
vakuras
  • 987
  • 6
  • 10

2 Answers2

1

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.

Community
  • 1
  • 1
Todd Main
  • 28,951
  • 11
  • 82
  • 146
  • 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
0

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

Community
  • 1
  • 1
David B Heise
  • 386
  • 1
  • 8