-
-
Save sergey-tihon/59808739a496667b041f0b3c162cb912 to your computer and use it in GitHub Desktop.
Clippit-intro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void PublishSlides(string sourceFileName, string resultDirectory) | |
{ | |
Application ppApp = null; | |
try | |
{ | |
ppApp = new Application | |
{ | |
DisplayAlerts = PpAlertLevel.ppAlertsNone | |
}; | |
const MsoTriState msoFalse = MsoTriState.msoFalse; | |
var presentation = ppApp.Presentations.Open(sourceFileName, | |
msoFalse, msoFalse, msoFalse); | |
presentation.PublishSlides(resultDirectory, true, true); | |
presentation.Close(); | |
} | |
finally | |
{ | |
ppApp?.Quit(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment