How can I get the ActivePresentation file format from PowerPoint Interop

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

Answers


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.


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


Need Your Help

UITableViewCells scroll over header when scrolling down

ios objective-c iphone

I'm trying to figure out what my options are for having the top of a UITableView be able to stay at rest about 1/3 down the screen but still be able to scroll over the top of an image above it.

Why does my shell script not find anything (find . -name script.sh | grep watermelon)

shell grep

I have a script that I'm running from the home directory to search for all files called "script.sh" that contain the string "watermelon". It's not finding anything but I can clearly see these scrip...